Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 17
Easy

The three examples of code shown in the table below are equivalent to one another.

Figure 1

Program AProgram BProgram C
x ← 10MOV R1, #100101 0001 0000 1010
y ← 5MOV R2, #50101 0010 0000 0101
WHILE x ≠ yloop:1110 0001 0010 0000
x ← x - yCMP R1, R21001 1011 0000 0100
ENDWHILEBEQ out0110 0001 0001 0010
SUB R1, R1, R21010 0000 0000 0010
B loop0000 0000 0000 0000
out: HLT

Select the correct statement that is true about Figure 1.

None of the code examples is written in a low-level language.

Only one of the code examples is written in a low-level language.

Only two of the code examples are written in low-level languages.

All three of the code examples are written in low-level languages.

Classification of programming languages and translators Questions

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