Past-paper question · 2013 May-June · Paper 33 · Q2(b)(iii)

Question 2(b)(iii) 2013 · May-June · Paper 33 · 7 marks

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

Official answer for Question 2

Part (b)

(iii)

(iii)

✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
GCE A LEVEL – May/June 2013
✓
9691

Question 33

✓
Expression
✓
Valid/Invalid
✓
Rules used
✓
[g]
✓
Valid
✓
Uses all the rules except 3
✓
1 + 1
✓
–
✓
Starts with 7
✓
–
✓
3 not used
✓
[dc]
✓
Invalid
✓
–
✓
3 not used
✓
–
✓
ends with 7
✓
1 + 1
✓
–
✓
Starts with 7
✓
–
✓
all rules used, incl,
✓
[w,a]
✓
Valid
✓
–
✓
all rules used, incl,
✓
rule 6 twice
✓
1 + 2
✓
rule 6 twice
✓
–
✓
ends with 7

Mark scheme 9691_s13_ms_33.pdf →

Show text version of question

Question 2

Part (b)

(iii)

A
set of BNF rules describe a data structure called a list.

1. <Char> ::= a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z 2. <ListItem> ::= <Char> 3. <Comma> ::= , 4. <LSquareBracket> ::= [ 5. <RSquareBracket> ::= ] 6. <Contents> ::= <ListItem> | <ListItem> <Comma> <Contents> 7. <List> ::= <LSquareBracket> <Contents> <RSquareBracket>

(iii)

For each expression state whether it represents a valid or invalid list. State the rule

number(s) in the order you have applied them to arrive at your decision.

Expression Valid/Invalid Rules used

[g]

[dc]

[w,a]

[7]

Question 5

Topic relevance

Why this question appears here

71% assigned-topic match · Hardware › Logic gates and logic circuits

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

Keep practising this topic