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

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

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

Official answer for Question 7

Part (b)

✓
One mark per statement

Question 4

✓
MP1
✓
Change INPUT Value so that it saves values into an array
✓
MP2
✓
… using the counter as the index
✓
MP3
✓
Outside the (first) loop, set up a loop that will iterate 50 times
✓
MP4
✓
Use an output statement inside the (second) loop to output the contents
✓
of the array, using the counter as the index.
✓
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 7

Part (b)

Question 7

The flowchart shows an algorithm that is used to input 50 numbers. Each number is stored in the

variable Value when it is input. Any number input that is less than or equal to –20 or greater than or equal to 50 is rejected and re-input. The accepted numbers are added together as they are entered and the total and average of these numbers are output at the end of the algorithm.

Part (b)

Explain how you would alter the flowchart in 7(a) so that it will individually store each accepted

value as it is entered and then output all the numbers, one after the other, outside of the loop that inputs values.

You may include program statements or flowchart symbols in your answer, but they must be fully explained.

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

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

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

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

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

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

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

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

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

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

[4]

Question 10

, ,

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