Skip to content

Course home

Classification of programming languages and translators

Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 34

Statements 1 and 2 describe two different types of software translators used in computer systems.

Statement 1: This translator takes a program written in low-level assembly code (such as the instructions in Example B of Table 1) and translates it directly into the CPU's native binary machine code (such as Example C).

Statement 2: This translator processes an entire high-level source code file (such as the instructions in Example A) all at once, performing optimizations and syntax checking across the whole program, and outputs an independent, executable binary machine code file.

Table 1

Example AExample BExample C
temp = 37MOV R1, #370010 0001 0010 0101
limit = 38MOV R2, #380010 0010 0010 0110
diff = limit - tempSUB R3, R2, R10110 0011 0010 0001

State the type of program translator referred to in:

a.

Statement 1

[1]
b.

Statement 2

[1]
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