Past-paper question · 2015 May-June · Paper 32 · Q1(c)

Question 1(c) 2015 · May-June · Paper 32 · 2 marks

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

Official answer for Question 1

Part (c)

Part (c)

✓
<letter> | <letter><variable>
✓
//
✓
<letter> |

Question 2

✓
<variable><letter>

Mark scheme 9608_s15_ms_32.pdf →

Show text version of question

Question 1

Part (c)

Question 1

The following syntax diagrams, for a particular programming language, show the syntax of:

  • an assignment statement
  • a variable
  • a letter
  • an operator

Assignment statement Variable = Variable Operator Variable ;

Variable Letter Letter Letter

Letter Operator a +

b –

c

d ÷

Part (c)

Rewrite the BNF rule for a variable so that it can be any number of letters.

<variable> ::=

...............................................................................................................................................[2]

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Programming basics

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 9608_s15_qp_32.pdf

Keep practising this topic