Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 31
Easy

Statements 1 and 2 refer to two different types of program translators.

Statement 1: This type of program translator translates the entire high-level source code into a standalone machine code executable file (object code) before the program is run. It does not execute the code during translation and reports all syntax errors only after the entire file has been scanned.

Statement 2: This type of translator was used to convert the code in Example Q to the code in Example R shown in Table 1.

Table 1

Example PExample QExample R
temp = 45MOV R4, #450100 0100 0010 1101
target = 32MOV R5, #320100 0101 0010 0000
diff = temp - targetSUB R6, R4, R51000 0110 0100 0101

State the type of program translator referred to in:

a.

Statement 1

[1]
b.

Statement 2

[1]

Classification of programming languages and translators Questions

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