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

Question 10(c) 2010 · May-June · Paper 32 · 4 marks

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

Official answer for Question 10

Part (c)

Part (c)

✓
REAL
✓
NZDIGIT
✓
DIGIT
✓
POINT
✓
DIGIT
✓
ZERO
✓
Mark Points:
✓
Before point:
  • Allows only 0
  • NZ Digit alone
  • NZ Digit AND unlimited digits
✓
After point:
  • Possibility of no digits
  • Unlimited digits
✓
(1 per -, max 4)
[4]

Mark scheme 9691_s10_ms_32.pdf →

Show text version of question

Question 10

Part (c)

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 (c)

Draw a syntax diagram of REAL. You may use NZDIGIT, DIGIT, POINT and ZERO in your

diagram but no other values.

[4]

reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

University of Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.

Topic relevance

Why this question appears here

71% assigned-topic match · Data types and structures › Data types and records

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