Computer Knowledge

Programming Languages and Compilers

1,170 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 mainframe
  1. 01-49, 66

  2. 01-49,77

  3. 01-49,66,77,88

  4. 01-49

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

In COBOL, standard record level numbers range from 01 to 49, with 01 being the highest (most major) and 49 being elementary items. Levels 66 (RENAMES), 77 (independent elementary items), and 88 (condition names) are special-purpose levels with specific functions outside the regular 01-49 hierarchy. Option A and B are incomplete, C includes special levels incorrectly.

Multiple choice technology mainframe
  1. Common Business Oriented Language

  2. Common Business Object Language

  3. Common Balls Of Light

  4. Common Object Business Oriented LAnguage

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

COBOL stands for Common Business Oriented Language, a high-level programming language designed for business applications. It was developed in 1959 and remains widely used in enterprise and government systems for transaction processing and administrative applications.

Multiple choice technology programming languages
  1. 3rd generation programming language

  2. 4th generation programming language

  3. 5th generation programming language

  4. All of the above

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

SAS (Statistical Analysis System) is a 4th generation programming language (4GL). 4GLs are designed to be closer to human language and more domain-specific than 3GLs like C or Java. SAS provides high-level declarative syntax for data analysis.

Multiple choice technology databases
  1. PL/SQL

  2. SQL

  3. SQL*PLUS

  4. JAVA

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

PL/SQL (Procedural Language extensions to SQL) is Oracle's procedural programming language that combines SQL data manipulation with procedural constructs like variables, conditions, loops, and exception handling. It enables custom program logic to execute within the Oracle database server.

Multiple choice technology web 2.0
  1. a low-level programming language.

  2. a scripting language precompiled in the browser

  3. a compiled scripting language.

  4. an object-oriented scripting language.

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

JavaScript is best described as an object-oriented scripting language. It is not precompiled in the browser (it uses JIT compilation or interpretation), nor is it a low-level language or a statically compiled language.

Multiple choice technology mainframe
  1. Identification Division

  2. Environment Division

  3. Data Division

  4. Procedure Division

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

The Identification Division is the only division that is mandatory in every COBOL program. It identifies the program to the compiler and must be present in all COBOL code. The Environment, Data, and Procedure divisions are commonly used but not all are mandatory.

Multiple choice technology programming languages
  1. .NET Framework 2.0 CLR was was introduced with VS 2005

  2. .Net Framework 3.0 uses the .NET Framework 2.0 CLR

  3. .Net Framework 3.5 uses the .NET Framework 2.0 CLR

  4. .Net Framework 3.5 SP1 first time introduce the .NET Framework 3.0 CLR

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

.NET Framework 2.0 CLR shipped with VS 2005 (A is true). .NET 3.0 and 3.5 both use CLR 2.0 (B and C are true). .NET 3.5 SP1 still used CLR 2.0 - the 3.0 CLR didn't exist as a distinct version. CLR changed to 4.0 only with .NET Framework 4.0. Option D is false.

Multiple choice technology web technology
  1. JAVA

  2. C#

  3. VB

  4. C++

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

The E-App (Electronic Application) system is built using VB (Visual Basic). This is a legacy technology choice common in enterprise applications, particularly in the insurance and financial services domain.

Multiple choice technology programming languages
  1. automatic

  2. enigmatic

  3. pragmatic

  4. syntactic

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

In Object-Oriented Programming, the binding between data and the operations that can be performed on it is described as 'syntactic' because it follows the syntax rules of the language. This close binding is a fundamental characteristic of OOP languages.

Multiple choice technology mainframe
  1. Identification Division

  2. Linkage Division

  3. Data Division

  4. Procedure Division

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

The four standard divisions in a COBOL program are Identification, Environment, Data, and Procedure. Linkage Division is not one of the four main divisions; it is a special division used specifically for defining parameters passed to a program when called from another program. The correct answer is B (Linkage Division).