Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 28
Easy

An IT systems architect is reviewing how different development environments handle program translation and execution. They document three distinct translation scenarios:

  • Scenario I: The translator parses and executes the high-level source code line-by-line at runtime. No standalone machine-code executable is generated, and if an error is encountered on line 45, the program executes lines 1 to 44 successfully before halting.
  • Scenario II: The translator parses the entire high-level source code file at once, performs optimizations, and outputs a self-contained, machine-executable file. Once compiled, the source code is no longer needed to run the program.
  • Scenario III: The translator maps low-level instruction mnemonics (such as MOV, ADD, or CMP) directly onto their corresponding binary opcodes and operands in a one-to-one relationship.

Which of the following correctly identifies the type of translator used in each scenario?

Scenario I: Compiler; Scenario II: Interpreter; Scenario III: Assembler

Scenario I: Interpreter; Scenario II: Compiler; Scenario III: Assembler

Scenario I: Interpreter; Scenario II: Assembler; Scenario III: Compiler

Scenario I: Compiler; Scenario II: Assembler; Scenario III: Interpreter

Classification of programming languages and translators Questions

  1. GCSE
  2. /Computer Science
  3. /Classification of programming languages and translators