Cambridge A2 Level Computer Science 9618 · 16.2 Translation Software

Q21 · 9618/32/O/N/22 Q2

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

Q219618/32/O/N/22original Q2Structured · 4 marks
Question 2 from 9618/32/O/N/22

Worked solution

(a)

Write two other stages:

Code generation [1]

Optimisation [1]

(b)

Write any two points:

It checks that the code matches the grammar (rules) of the language [1]

Syntax errors are reported [1]

Also accepted: a parse tree is produced

Only two score (2 marks).

KEY IDEASyntax analysis checks that the tokens follow the rules of the language.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/32/O/N/22 question 2
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.