Skip to content

Course home

Classification of programming languages and translators

Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 17

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.

A

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

B

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

C

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

D

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

Markscheme

Classification of programming languages and translators Questions

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

48 exam-style questions on AQA GCSE Computer Science Classification of programming languages and translators. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank