Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 15
Easy

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

Figure 1

Program Code PProgram Code QProgram Code R
width = 5MOV R1, #50101 0001 0000 0101
height = 10MOV R2, #100101 0010 0000 1010
area = width * heightMUL R3, R1, R20110 0011 0001 0010

Statement A: This type of translator scans the entire high-level source code (such as Program Code P) in one go and translates it into a standalone machine-code executable file, which can then be executed directly by the CPU.

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

Identify the program translator referred to in:

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