Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 9
Easy

Statements A and B refer to two different types of program translator.

Figure 1

Program Code XProgram Code YProgram Code Z
val1 = 12MOV R1, #121101 0001 0000 1100
val2 = 7MOV R2, #71101 0010 0000 0111
total = val1 - val2SUB R3, R1, R21110 0011 0001 0010
print(total)OUT R31111 0011 0000 0000

Statement A: This type of translator analyzes and executes source code line-by-line. No standalone binary executable file is saved, meaning the translation process must run every time the program is executed.

Statement B: This type of translator is used to convert the low-level assembly code in Program Code Y to the binary machine code in Program Code Z.

State the program translator referred to in Statement A and Statement B.

a.
  • Statement A:
[1]
b.
  • Statement B:
[1]

Classification of programming languages and translators Questions

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