Cambridge O Level Computer Science 2210 · 4.2 Types of programming language, translators and integrated development environments (IDEs)

Q14 · 2210/12/M/J/20 Q2

Worked solution from the Software Paper 1 Computer Systems booklet, Part 2 of 2.

Q142210/12/M/J/20original Q2Structured · 7 marks
Question 2 from 2210/12/M/J/20

Worked solution

(a)

Say what each translator is used for, and when. Write any four of these points:

Also accepted: both translate the high-level language into low-level language (machine code)

The interpreter is used while writing the program [1]

The interpreter runs the code line by line, so it helps to find and fix errors (debug) [1]

The compiler is used when the program is finished [1]

The compiler makes a separate executable file, so the compiler is not needed again to run it [1]

Also accepted: if it compiles first time, there are no syntax errors

(b)

Write any three reasons, for example:

It is easier to understand and write (you do not need to know assembly code) [1]

It is easier to debug [1]

It is easier to maintain [1]

Also accepted: it is portable (it can run on different computers)

Also accepted: you do not need to manage memory locations or registers

Also accepted: you can use an IDE, and there is a bigger choice of languages

KEY IDEAAn interpreter helps while writing and testing, and a compiler makes the finished executable program.
TOTAL 7 marks

Official mark scheme

Mark scheme for 2210/12/M/J/20 question 2
VIDEO
▶ Topic lesson

A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.