Question 10(b) 2010 · May-June · Paper 32 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 10
Part (b)
Part (b)
<REAL>::=<FIRST><POINT><NUMBER>│<FIRST><POINT>
- 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
- Definition of zero
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.)
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
