Cambridge AS Level Computer Science 9618 · 5.2 Language Translators

Q20 · 9618/11/M/J/24 Q3

Worked solution from the System Software Paper 1 Theory Fundamentals booklet, Part 2 of 2.

Q209618/11/M/J/24original Q3Structured · 5 marks
Question 3 from 9618/11/M/J/24

Worked solution

(a)

Explain one reason (one point and its reason):

The interpreter stops when an error is found [1]

... so the error can be corrected in real time and the result of changes seen immediately [1]

Alternative: only one error is shown at a time, so there are fewer errors to correct and no dependent errors.

(b)

Give up to three points:

The program can be distributed without the source code [1]

... so it cannot be edited, stolen or plagiarised [1]

Users do not need the translator to run the program, so they spend no time retranslating it [1]

KEY IDEAInterpreter: stops at each error so it is fixed at once. Compiler: gives an executable file to sell without the source code.
TOTAL 5 marks

Official mark scheme

Mark scheme for 9618/11/M/J/24 question 3
VIDEO
▶ Starts at Q3 (41:33)

Starts at Q3 (41:33) · by Pseudocode Pro. 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.