Past-paper question · 2021 May-June · Paper 22 · Q5(a)

Question 5(a) 2021 · May-June · Paper 22 · 3 marks

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

Official answer for Question 5

Part (a)

✓
One mark for:

Question 3

  • Use of FOR loop
  • Working loop with correct number of Iterations
  • Correct assignment
✓
FOR Count ← 1 TO 20
✓
dataArray[Count] ← 0
✓
NEXT (Count)

Mark scheme 2210_s21_ms_22.pdf →

Show text version of question

Question 5

Part (a)

Question 5

A one-dimensional array dataArray[1:20] needs each element set to zero.

Part (a)

Write a pseudocode routine that sets each element to zero. Use the most suitable loop

structure.

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

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

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

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

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

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

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

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

[3]
Topic relevance

Why this question appears here

98% assigned-topic match · Programming › 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 2210_s21_qp_22.pdf

Keep practising this topic