Question 1(b) 2015 · May-June · Paper 32 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (b)
Part (b)
Question 2
Question 2
Question 1
Question 1
Show text version of question
Question 1
Part (b)
Question 1
The following syntax diagrams, for a particular programming language, show the syntax of:
- an assignment statement
- a variable
- a letter
- an operator
Assignment statement Variable = Variable Operator Variable ;
Variable Letter Letter Letter
Letter Operator a +
b –
c
d ÷
Part (b)
Write the Backus-Naur Form (BNF) for the syntax diagrams shown on the opposite page.
<assignmentstatement> ::=
...................................................................................................................................................
<variable> ::=
...................................................................................................................................................
<letter> ::=
...................................................................................................................................................
<operator> ::=
...............................................................................................................................................[6]
Why this question appears here
71% assigned-topic match · Programming › Programming basics
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_s15_qp_32.pdf
