Past-paper question · 2011 October-November · Paper 12 · Q5(a)(ii)
Question 5(a)(ii) 2011 · October-November · Paper 12 · 4 marks
Reveal official mark-scheme answer
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]
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
