Past-paper question · 2025 May-June · Paper 21 · Q3

Question 3 2025 · May-June · Paper 21 · 4 marks

Original past-paper question for 3
Reveal official mark-scheme answer Official mark-scheme answer for 3

Official answer for Question 3

✓
One mark per bullet point

Question 4

✓
•
✓
Initialising a count variable outside of loop
✓
•
✓
Correct use of loop with condition for 10 times (WHILE (DO)...ENDWHILE, REPEAT...UNTIL) with close
✓
•
✓
Incrementing the count variable inside the loop
✓
•
✓
Rest of algorithm correct
✓
Examples
✓
Count ← 1
✓
REPEAT
✓
OUTPUT "Please enter a name"
✓
INPUT Name
✓
Names[Count] ← Name
✓
Count ← Count + 1
✓
UNTIL Count > 10
✓
Or
✓
Count ← 1
✓
WHILE Count <= 10 DO
✓
OUTPUT "Please enter a name"
✓
INPUT Name
✓
Names[Count] ← Name
✓
Count ← Count + 1
✓
ENDWHILE
✓
0478/21
✓
Cambridge IGCSE – Mark Scheme
✓
May/June 2025
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_s25_ms_21.pdf →

Show text version of question

Question 3

The following pseudocode algorithm uses a count-controlled loop to read in 10 names and store them in the array Names[]

FOR Count 1 TO 10 OUTPUT "Please enter a name" INPUT Name Names[Count] Name NEXT Count

Rewrite the algorithm in pseudocode, using a condition-controlled loop instead of a count-controlled loop.

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

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

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

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

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

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

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

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

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

[4]

Question 4

, ,

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 0478_s25_qp_21.pdf

Keep practising this topic