Past-paper question · 2016 October-November · Paper 32 · Q2(a)

Question 2(a) 2016 · October-November · Paper 32 · 4 marks

Original past-paper question for 2(A)
Original past-paper question for 2(A)
Reveal official mark-scheme answer Official mark-scheme answer for 2(A)

Official answer for Question 2

Part (a)

Part (a)

✓
Statement
✓
Compilation stage
✓
This stage can improve
✓
the time taken to
✓
Lexical analysis
✓
execute the statement:
✓
x = y + 0

Question 1

✓
This stage produces
✓
Syntax analysis
✓
mark for
✓
object code.
✓
each
✓
correct
✓
line
✓
This stage makes use
✓
Code generation
✓
of tree data structures.
✓
This stage enters
✓
symbols in the symbol
✓
Optimisation
✓
table.
[4]

Mark scheme 9608_w16_ms_32.pdf →

Show text version of question

Question 2

Part (a)

Question 2

There are four stages in the compilation of a program written in a high-level language.

Part (a)

Four statements and four compilation stages are shown below.

Draw a line to link each statement to the correct compilation stage.

Statement Compilation stage

This stage can improve the time taken to execute the statement: Lexical analysis x = y + 0

This stage produces object Syntax analysis code.

This stage makes use of tree Code generation data structures.

This stage enters symbols in Optimisation the symbol table.

[4]
Topic relevance

Why this question appears here

82% assigned-topic match · System software › Language translators

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9608_w16_qp_32.pdf

Keep practising this topic