Skip to main content
A-LevelComputer ScienceSystem software9618/32 · Oct/Nov 2022 · Q24 Marks

Lexical analysis and syntax analysis are stages in the compilation of a program.

  1. (a)Identify two other stages that take place during the compilation of a program.[2]
  2. (b)Outline the purpose of syntax analysis.[2]

Mark scheme

Marking points from the official mark scheme (Oct/Nov 2022). The mark or mark type is shown in brackets.

  1. [1] (a) One mark per point • Code generation
  2. [1] (a) • Optimisation
  3. [1] (b) One mark per point (Max 2) • It checks that the code matches the grammar of the language // It checks that the tokens conform with the rules of the programming language
  4. [1] (b) • Syntax errors are reported
  5. [1] (b) • A parse tree is produced.

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
System software, A-Level Computer Science (syllabus 9618). Structured question, 4 marks.
Source
A-Level Computer Science, Oct/Nov 2022 Paper 3 Variant 2, question 2.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep