Past-paper question · 2021 May-June · Paper 32 · Q6(a)

Question 6(a) 2021 · May-June · Paper 32 · 3 marks

Original past-paper question for 6(A)
Original past-paper question for 6(A)
Reveal official mark-scheme answer Official mark-scheme answer for 6(A)

Official answer for Question 6

Part (a)

✓
•
✓
Y is not a variable

Question 3

✓
•
✓
:= should be = for an assignment statement
✓
•
✓
7 is not a valid digit

Mark scheme 9608_s21_ms_32.pdf →

Show text version of question

Question 6

Part (a)

Question 6

The syntax diagrams for a programming language show the syntax of:

  • an assignment statement
  • a variable
  • an unsigned integer
  • a letter
  • an operator
  • a digit

assignment statement

variable variable operator unsigned = integer

variable

letter digit

unsigned integer

digit digit

letter operator digit

X + 1

Y – 2

Z * 3

Part (a)

Give reasons why each of these statements is invalid.

X1 = Y - 21

...................................................................................................................................................

Y3 := Y3 + 1

...................................................................................................................................................

X1 = X2 * 7

...................................................................................................................................................

[3]

Question 9

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_s21_qp_32.pdf

Keep practising this topic