Past-paper question · 2011 October-November · Paper 12 · Q5(a)(ii)

Question 5(a)(ii) 2011 · October-November · Paper 12 · 4 marks

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

Official answer for Question 5

Part (a)

(ii)

(ii)

FOR I = 0 TO LENGTH

✓
FOR J = 0 TO BREADTH
✓
ARRAY (I,J) = 0
✓
NEXT J
✓
NEXT I
✓
Mark points:
  • Two nested loops
  • Each uses one of the indices as counter
  • Correct conditions on loops
  • Each loop will initialise one cell in table/Correctly identified...
  • to zero.
✓
(1 per –, max 4, accept any form of presentation of mark points)
[4]

Mark scheme 9691_w11_ms_12.pdf →

Show text version of question

Question 5

Part (a)

(ii)

(ii)

Explain how the contents of a two-dimensional array can be initialised to zero.

[4]
Topic relevance

Why this question appears here

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

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

Keep practising this topic