Past-paper question · 2014 May-June · Paper 31 · Q1(a)

Question 1(a) 2014 · May-June · Paper 31 · 2 marks

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

Official answer for Question 1

Part (a)

Part (a)

✓
The rule is defined in terms of itself
✓
A. ‘calls’ itself
✓
Rule 4
[2]

Mark scheme 9691_s14_ms_31.pdf →

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

[2]
Topic relevance

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_31.pdf

Keep practising this topic