Past-paper question · 2025 May-June · Paper 22 · Q4(b)

Question 4(b) 2025 · May-June · Paper 22 · 6 marks

Original past-paper question for 4(B)
Original past-paper question for 4(B)
Reveal official mark-scheme answer Official mark-scheme answer for 4(B)

Official answer for Question 4

Part (b)

✓
One mark per mark point, max six

Question 6

✓
MP1
✓
At least one appropriate working loop
✓
MP2
✓
First inputs of numbers all stored in array Numbers
✓
MP3
✓
Correct second input made for each number
✓
MP4
✓
Working selection statement to compare first and second inputs one at
✓
a time
✓
MP5 If numbers don’t match, appropriate output, including both values input
✓
and a message requiring re-input
✓
MP6 New input stored in current array location (replacing original input)
✓
MP7 Final output confirming completion, outside loop.
✓
For example,
✓
// variable and array declarations or initialisations
✓
// are not required for this question
✓
FOR Index 1 TO 10
✓
INPUT Numbers[Index]
✓
NEXT Index
✓
FOR Index 1 TO 10
✓
INPUT CheckNumber
✓
IF CheckNumber <> Numbers[Index]
✓
THEN
✓
OUTPUT CheckNumber, " and ", Numbers[Index], " do
✓
INPUT Numbers[Index]
✓
ENDIF
✓
NEXT Index
✓
OUTPUT "The check has been completed."
✓
0478/22
✓
Cambridge IGCSE – Mark Scheme
✓
May/June 2025
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_s25_ms_22.pdf →

Show text version of question

Question 4

Part (b)

Part (b)

Write the pseudocode for an algorithm to perform a double entry verification check, using the

following criteria:

  • Input 10 numbers and store them in the array Numbers[]
  • Input the same 10 numbers again; as each number is input, compare it with its

corresponding number in the array Numbers[] ◦ if the numbers match, move on to the next number ◦ if the numbers do not match, display both numbers and ask for the number to be re-entered ◦ store the re-entered number in the corresponding array location and move on to the next number.

  • When all the numbers have been checked, display a message to say the check has

been completed.

You do not need to declare any arrays or variables for this algorithm.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[6]

Question 4

, ,

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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

Keep practising this topic