The three examples of code shown in the table below are equivalent to one another.
| Program A | Program B | Program C |
|---|---|---|
x ← 10 | MOV R1, #10 | 0101 0001 0000 1010 |
y ← 5 | MOV R2, #5 | 0101 0010 0000 0101 |
WHILE x ≠ y | loop: | 1110 0001 0010 0000 |
x ← x - y | CMP R1, R2 | 1001 1011 0000 0100 |
ENDWHILE | BEQ out | 0110 0001 0001 0010 |
SUB R1, R1, R2 | 1010 0000 0000 0010 | |
B loop | 0000 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.