Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 2
Easy

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

Statement 1: This type of translator converts a high-level source-code program into machine code one statement at a time, executing each statement as it translates it. It stops execution immediately if a runtime or syntax error is encountered.

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

Table 1

Example AExample BExample C
x = 5MOV R0, #50010 0000 0000 0101
y = 12MOV R1, #120010 0001 0000 1100
z = x + yADD R2, R1, R00110 0010 0001 0000

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