Draw one line to connect each stage of compilation to its most appropriate description. Stage of compilation Description Lexical analysis minimising a program's execution time and memory requirement converting an intermediate representation of source code into an executable form Syntax analysis converting a sequence of characters into a sequence of tokens Code generation directly executing instructions written in a scripting language Optimisation using parsing algorithms to interpret the meaning of a sequence of tokens
- (a)Draw one line to connect each stage of compilation to its most appropriate description. Stage of compilation Description Lexical analysis minimising a program's execution time and memory requirement converting an intermediate representation of source code into an executable form Syntax analysis converting a sequence of characters into a sequence of tokens Code generation directly executing instructions written in a scripting language Optimisation using parsing algorithms to interpret the meaning of a sequence of tokens[4]
This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2022). The mark or mark type is shown in brackets.
- [4] One mark for each correct line connecting one stage of compilation to a description
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 →