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
  1. Common Type System

  2. Common Language Runtime

  3. .NET Framework Class Library

  4. Windows Forms Application

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

The .NET Framework Class Library provides pre-written code in the form of classes that are available to all of the .NET programming languages. This class library consists of hundreds of classes.

Multiple choice
  1. Each form runs in its own application window.

  2. A container form called Parent Form contains one or more Child Forms.

  3. Each form can have its own menus and toolbars.

  4. It has a main form called a Startup form.

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

This statement is false with respect to SDI because there is no parent - child form present in SDI. This statement can be true in case of MDI (Multiple Document Interface).

Multiple choice
  1. high level language

  2. machine language

  3. assembly language

  4. None of these

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

Assembly language uses mnemonic opcodes (like ADD, MOV, JMP) instead of binary machine codes. Each opcode corresponds to a specific machine instruction. High-level languages use English-like statements, machine language uses raw binary, and assembly is the intermediate level using opcodes.

Multiple choice
  1. Computer business oriented language

  2. Coded business operator language

  3. Computer business operator language

  4. Common business oriented language

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

COBOL stands for Common Business Oriented Language. It was designed for business, finance, and administrative systems. The name reflects its purpose: a language for common business applications.

Multiple choice
  1. They enhance the portability of the compiler to other target processors

  2. Program analysis is more accurate on intermediate code than on machine code

  3. The information from dataflow analysis cannot otherwise be used for optimization

  4. The information from the front end cannot otherwise be used for optimization

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

Code optimization are carried out on intermediate code because program analysis is more accurate on immediate code than on machine code.

Multiple choice
  1. I and II

  2. I and IV

  3. III and IV

  4. I, III and IV

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