Question 1(a) 2014 · May-June · Paper 32 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (a)
Part (a)
Show text version of question
Question 1
Part (a)
Question 1
The syntax of a high-level programming language is defined using Backus-Naur Form (BNF).
Five of the rules are shown below.
1. <LeftBr> ::= [ 2. <RightBr> ::= ] 3. <Digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 4. <Integer> ::= <Digit> | <Digit><Integer> | <Integer><Digit> 5. <ArraySubscript> ::= <LeftBr><Integer><RightBr>
Part (a)
A rule may be recursive.
Explain what is meant by this and identify the rule above which is recursive.
Rule number
Why this question appears here
98% assigned-topic match · Computational thinking and problem-solving › Recursion
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 9691_s14_qp_32.pdf
