Cambridge A2 Level Computer Science 9618 · 16.2 Translation Software

Q32 · 9618/31/M/J/25 Q6

Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 2 of 2.

Q329618/31/M/J/25original Q6Structured · 4 marks
Question 6 from 9618/31/M/J/25

Worked solution

Write the steps in the order the interpreter does them.

The interpreter translates the source code one line at a time [1]

If the line has no syntax error, it is executed straight away [1]

The translated code is not stored as an executable file [1]

If an error is found, the program stops and an error message is shown [1]

Other point that scores: each line is translated again every time it runs, even inside a loop (only 4 marks are available).

KEY IDEAAn interpreter translates and runs one line at a time and keeps no executable, so it stops at the first error.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/31/M/J/25 question 6
VIDEO
▶ Topic lesson

A lesson on this topic · by Craig'n'Dave. 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.