Past-paper question · 2010 May-June · Paper 32 · Q10(b)

Question 10(b) 2010 · May-June · Paper 32 · 3 marks

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

Official answer for Question 10

Part (b)

Part (b)

<REAL>::=<FIRST><POINT><NUMBER>│<FIRST><POINT>

✓
<FIRST>::=<INTEGER>│<ZERO>
✓
<POINT>::= .
✓
<ZERO> ::= 0
✓
Mark points:
  • Definition contains . (point)/Definition contains 0
  • Definition has integer OR 0 before the point AND number or nothing after the point
  • Correct use of notation
✓
(Note: No marks for redefining meta variables given in question)
  • Definition of zero
[3]

Mark scheme 9691_s10_ms_32.pdf →

Show text version of question

Question 10

Part (b)

Question 10

An INTEGER is defined in a certain language by the following BNF rules:

<INTEGER>::=<NZDIGIT><NUMBER>│<NZDIGIT> <NUMBER>::=<DIGIT>│<DIGIT><NUMBER> <NZDIGIT>::=1│2│3│4│5│6│7│8│9 <DIGIT>::=0│<NZDIGIT>

Part (b)

A REAL is defined as an integer or a zero followed by a . (point) followed by an unlimited

number of digits (including none).

Produce BNF rules to define REAL. (The BNF rules stated above do not need to be reproduced.)

[3]
Topic relevance

Why this question appears here

82% 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_s10_qp_32.pdf

Keep practising this topic