Past-paper question · 2025 October-November · Paper 22 · Q5(a)

Question 5(a) 2025 · October-November · Paper 22 · 27 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 per mark point, max six

Question 6

✓
MP1
✓
Correct Code column
✓
MP2
✓
Correct Store column
✓
MP3
✓
Correct Count column
✓
MP4
✓
First four CodeStore columns left unchanged
✓
MP5
✓
Correct CodeStore[5] and CodeStore[6] columns
✓
MP6
✓
Correct OUTPUT column
✓
CodeStore[]
✓
Code
✓
Store
✓
Count
[1]
[2]
[3]
[4]
[5]
[6]
✓
OUTPUT
✓
aBcd
✓
1532
✓
Face
✓
63q8
✓
7686
✓
FALSE

Question 1

Question 2

Question 3

Question 4

✓
TRUE

Question 5

✓
7686

Question 6

✓
Face
✓
FALSE

Question 1

Question 2

✓
0478/22
✓
Cambridge IGCSE – Mark Scheme
✓
October/November 2025
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w25_ms_22.pdf →

Show text version of question

Question 5

Part (a)

Question 5

This flowchart represents an algorithm.

START

OUTPUT "Length INPUT Code must be 4"

No IS LENGTH(Code) = 4 ?

Yes Store FALSE

No OUTPUT "Code Count 1 used before" IS Store = Yes FALSE ?

IS Yes CodeStore[Count] = Code ?

No

No IS Yes CodeStore[Count] = "" ?

Store TRUE

Count Count + 1

No IS Count > 6 Yes ?

OUTPUT "CodeStore full"

STOP * 0000800000007 * DFD

Question 7

, ,

Part (a)

The first data row of the trace table shows the values currently stored in CodeStore[]

Complete the trace table for the algorithm, using the input data:

7686, Face, Speed, 432U, Yp79

CodeStore[] Code Store Count

[1]
[2]
[3]
[4]
[5]

[6] OUTPUT aBcd 1532 Face 63q8

[6]

* 0000800000008 * DFD

Question 8

, ,

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

Keep practising this topic