Question bank › GCSE › GCSE Computer Science › Computer systems

Programming languages & translators

10 questions45 marksabout 55 min

Answer on paper first, then reveal the mark scheme one mark at a time.

1Grade 1–33 marks

(a) Give one example of a low-level language. [1]

(b) Give two reasons why most programs are written in high-level languages. [2]

2Grade 4–54 marks

(a) State the type of translator that:

(i) converts assembly language into machine code [1]
(ii) translates a whole high-level program into machine code in one go, producing an executable file [1]
(iii) translates and runs a high-level program one line at a time. [1]

(b) State why a program written in a high-level language must be translated before it can be run. [1]

3Grade 4–53 marks

A student is learning to program and uses an interpreter while developing their code.

(a) Explain one reason why an interpreter is useful while a program is being developed. [2]

(b) State one disadvantage of running a finished program with an interpreter rather than as compiled code. [1]

Stuck on Programming languages & translators?

Get it sorted in a free 30-minute session

We work through your weakest questions on this topic on Zoom. I reply the same day.

4Grade 6–74 marks

(a) Describe the relationship between assembly language instructions and machine code instructions. [1]

(b) State why a machine code program written for one type of processor may not run on a different type of processor. [1]

(c) Give two situations where a programmer might choose to use a low-level language rather than a high-level language. [2]

5Grade 6–74 marks

A games company has written a new game in a high-level language. It will sell the game to customers to download.

Explain two reasons why the company should use a compiler, rather than an interpreter, for the version of the game that it distributes. [4]

6Grade 8–96 marks

An engineering company is developing two pieces of software:

  • the control program for a small embedded system inside a washing machine, which has very limited memory
  • a desktop app that customers can install on Windows and macOS computers to book repairs.

Discuss the choice of programming language level (high-level or low-level) and the type of translator the company could use for each piece of software. [6]

7Grade 6–75 marks

(a) Give two differences between a compiler and an interpreter. [2]

(b) State why an assembler is needed. [1]

(c) The computer that controls a washing machine is an embedded system. Explain what is meant by an embedded system. [2]

8Grade 1–34 marks

Programs can be written in machine code, assembly language or a high-level language.

Complete the table by writing Machine code, Assembly language or High-level language next to each statement. Each answer is used at least once. [4]

StatementType of language
Instructions are written as patterns of 0s and 1s
Uses English-like keywords such as WHILE and OUTPUT
Each instruction is translated into exactly one machine code instruction
Can be executed by the processor without any translation
9Grade 6–76 marks

A developer writes a data-processing program in a high-level language and produces two versions of it using two different translators. She measures the following times.

VersionTranslation time before the first runTime for each run of the program
Version A12 seconds (once only)0.4 seconds
Version B0 seconds1.3 seconds

(a) The program is to be run 100 times. Calculate the total time taken by each version. [2]

(b) State which type of translator was used to produce each version. Justify your answer using the table. [2]

(c) While testing, the developer only needs to run the program 10 times. Use a calculation to show which version is quicker for testing. [2]

10Grade 8–96 marks

A student writes the following in their revision notes:

"An interpreter translates a high-level program into machine code one line at a time and saves the machine code, so the second time the program is run it does not need translating again."

(a) The notes contain two mistakes. Identify each mistake and explain what actually happens. [4]

(b) The same high-level source code is run on a laptop with an x86 processor and on a tablet with an ARM processor, using an interpreter on each device. Explain why this works when the interpreter is used, but a compiled executable built on the laptop would not run on the tablet. [2]

Stuck on this topic?

Book a free 30-minute session on WhatsApp and we'll find exactly which step is costing you the marks. Or build a timed paper on it.

Free 30-minute session