Computer Knowledge

Programming Languages and Compilers

2,284 Questions

Programming languages and compilers involve the rules, syntax, and semantics used to write and execute software programs. Key areas include scripting languages, object oriented concepts, and parsing algorithms like top down parsers. Practice these computer science questions to build proficiency for technical and computer knowledge exams.

Object oriented languagesScripting languagesCompilers and parsersProgramming syntax

Programming Languages and Compilers Questions

Multiple choice technology web technology
  1. Request.Form;

  2. Request.QueryString;

  3. Request_Get("");

  4. $GET[]
  5. $_GET[];
Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

PHP uses the $_GET[] superglobal array to retrieve data from forms submitted via the GET method. This is a built-in associative array that automatically contains all data sent through the URL query string. Option B uses ASP syntax, while option D is missing the underscore prefix.

Multiple choice technology web technology
  1. <?php include_file("time.inc"); ?>

  2. <% include file="time.inc" %>

  3. <?php require("time.inc"); ?>

  4. <!--include file="time.inc"-->

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The require() function is used to include files in PHP, and it will cause a fatal error if the file cannot be found. While include() also works, require is generally preferred for essential files. Option A uses a non-existent function, option B uses ASP syntax, and option D uses an HTML comment.

Multiple choice technology web technology
  1. $_REQUEST[]
  2. $_GET[]
  3. $_POST[]
  4. $_SESSION[]
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

$_REQUEST[] is the correct variable that can retrieve values from both GET and POST methods. It's a superglobal array that contains data from $_GET, $_POST, and $_COOKIE. While $_GET and $_POST work for their specific methods, $_REQUEST combines them for convenience.

Multiple choice technology web technology
  1. mysql con=new mysql("Connection string")

  2. mysql("database name");

  3. mysql_connect("database name")

  4. mysql_connect("database",username,password)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The correct syntax is mysql_connect() with three parameters: server hostname, username, and password. Option D shows the correct parameter order, though the database name is actually a fourth optional parameter. Options A and B use incorrect syntax, while option C is missing the required connection parameters.

Multiple choice technology enterprise content management
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A component definition file serves as the central reference that specifies and links all the other pieces that make up a complete component. This includes the WDK form for UI, Java behavior class for logic, and NLS properties bundle for internationalization support.

Multiple choice technology programming languages
  1. Data Oriented Language

  2. Service Oriented Language

  3. Object Oriented Language

  4. Structured Oriented Language

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Visual Basic.NET is fundamentally an object-oriented language that supports core OOP principles like encapsulation, inheritance, and polymorphism. While it can handle data operations and structured programming, its architecture is built around objects and classes, not data-centric or service-only paradigms.

Multiple choice technology databases
  1. COBOL

  2. JAVA

  3. REXX

  4. VS PASCAL

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

IMS historically supports mainframe-era languages including COBOL, Assembler, PL/I, and REXX. VS PASCAL is also supported in IBM mainframe environments. Java, however, is not natively supported in traditional IMS environments - it emerged later as part of the J2EE ecosystem and requires different integration approaches like IMS Connect or JDBC adapters.

Multiple choice technology programming languages
  1. Dennis Ritchie

  2. Edsger Dijkstra

  3. James Gosling

  4. Louis Pasteur

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Java was created by James Gosling at Sun Microsystems in the early 1990s, originally called 'Oak.' The language was designed to be platform-independent using the Java Virtual Machine (JVM). Dennis Ritchie developed C, Dijkstra was a computer science pioneer known for algorithms, and Louis Pasteur was a biologist, not a programmer.

Multiple choice technology databases
  1. object oriented programming language

  2. programming language

  3. scripting language

  4. database

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Oracle is a relational database management system (RDBMS) - it is database software, not a programming language, object-oriented language, or scripting language. While Oracle does have PL/SQL (a procedural language extension), Oracle itself refers to the database platform and software, not a language.

Multiple choice technology science & technology
  1. COncentrated Behavioral Orientation language

  2. COmmon Behavioral Orientation language

  3. COmmon Business Oriented Language

  4. COncentrated Business Orientated language

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

COBOL stands for COmmon Business Oriented Language. This name reflects its original purpose - a language designed for business, data processing, and administrative applications. Options A, B, and D incorrectly expand the acronym with 'Concentrated' or misspell 'Orientated.'