9618/33/M/J/25 question 8: worked solution (May/June 2025, paper 33)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 16.2 Translation Software Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 2 of 2. Q36 9618/33/M/J/25 original Q8 Structured · 4 marks Worked solution Syntax analysis is the stage after lexical analysis. Write any four of these: It is the second stage of compilation, after lexical analysis [1] Its input is the stream of tokens from the lexical analyser [1] The code is checked ( parsed ) against the rules of the language to find errors [1] The output is a parse tree [1] Another point that scores: syntax errors are reported (only 4 marks available). KEY IDEA Syntax analysis checks the tokens against the language rules and builds a parse tree. TOTAL 4 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.