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

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. Q34 9618/32/M/J/25 original Q8 Structured · 4 marks Worked solution Lexical analysis is the first stage of compilation. Write any four of these: It is the first stage of compilation [1] White space and comments are removed [1] The source code is broken into a series of tokens [1] Each token is given a type (categorised) [1] Other points that score: identifiers are stored in a symbol table ; invalid tokens give an error ; good tokens pass to the syntax analyser (only 4 marks available). KEY IDEA Lexical analysis strips out white space and comments and turns the code into typed tokens for the next stage. 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.