Question 5(a) 2021 · May-June · Paper 31 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (a)
Question 3
Show text version of question
Question 5
Part (a)
Question 5
The following syntax diagrams for a programming language show the syntax of:
- an assignment statement
- a variable
- an unsigned integer
- a digit
- a letter
- an operator
assignment statement
variable = variable operator variable
unsigned integer
variable
letter letter
unsigned integer
digit digit
letter operator digit X + 1
Y – 2
Z * 3
Part (a)
Give reasons why each of these statements is invalid.
X = XY + 21
...................................................................................................................................................
YZ := YZ * 3
...................................................................................................................................................
XY = XY − 5
...................................................................................................................................................
Question 9
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_s21_qp_31.pdf
