Skip to content

Course home

Classification of programming languages and translators

Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 20

Three code snippets are shown in Figure 1 below.

Figure 1

Snippet ASnippet BSnippet C
def multiply(a, b):10100011 00000100MOV EAX, [EBP-8]
res = 011110010 10100000ADD EAX, 1
while b > 0:01001110 00001111MOV [EBP-8], EAX
res += a
b -= 1
return res

Select the option that correctly classifies the programming language level of each snippet and identifies the translator required before execution on a physical CPU.

A

Snippet A is a high-level language; Snippet B is a low-level language requiring no translator; Snippet C is a low-level language requiring an assembler.

B

Snippet A is a low-level language requiring a compiler; Snippet B is a high-level language requiring an interpreter; Snippet C is a low-level language requiring an assembler.

C

Snippet A is a high-level language; Snippet B is a low-level language requiring a compiler; Snippet C is a low-level language requiring no translator.

D

Snippet A is a high-level language; Snippet B is a high-level language requiring an assembler; Snippet C is a low-level language requiring an interpreter.

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