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. sequencing

  2. alteration

  3. iteration

  4. all of the above

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

Structured programming is built on three fundamental control structures: sequence, selection (often called alteration), and iteration (loops).

Multiple choice
  1. Machine Language

  2. BASIC

  3. Any high level programming language

  4. Specific programming language

  5. None of these

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

Computers operate at the hardware level using binary signals, which are represented by machine language. All other languages must be translated into machine language for the CPU to execute them.

Multiple choice
  1. binary language

  2. low-level language

  3. high-level language

  4. machine language

  5. None of these

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

Assembly level is a low-level language.

Multiple choice
  1. Interpreter

  2. Application program

  3. Compiler

  4. Assembler

  5. None of these

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

A compiler is a program that translates source code written in a high-level language into machine-readable object code. An interpreter executes code line-by-line without creating a separate object file.

Multiple choice
  1. Control worlds

  2. Reserved words

  3. Control structures

  4. Reserved keys

  5. None of these

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

Reserved words are terms that programming languages set aside for specific purposes and cannot be used as identifiers or variable names. Examples include 'if', 'while', 'class', and 'return'. Control structures and control worlds are not the correct terminology.

Multiple choice
  1. Database

  2. COM

  3. Platform independent

  4. Platform dependent

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

Java is famous for its 'Write Once, Run Anywhere' capability, which makes it platform-independent.