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

Question 5(c) 2025 · October-November · Paper 22 · 4 marks

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

Official answer for Question 5

Part (c)

✓
One mark per mark point, max four

Question 4

✓
MP1
✓
Declaration of array using correct name and data type
✓
MP2
✓
Declaration of loop counter
✓
MP3
✓
Use of appropriate loop for six iterations (allow any type of loop)
✓
MP4
✓
Assignment of all array elements to null string (using loop counter as array index)
✓
Example:
✓
DECLARE CodeStore : ARRAY[1:6] OF STRING
✓
DECLARE Index : INTEGER
✓
FOR Index 1 TO 6
✓
CodeStore[Index] ""
✓
NEXT Index
✓
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 (c)

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 (c)

The algorithm on page 6 requires the array CodeStore[] to be declared as a

one‑dimensional (1D) string array with six elements that are initially set to the null string "".

Write the pseudocode required to declare and initialise the array CodeStore[] You do need to declare any variables used.

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

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

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

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

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

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

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

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

[4]

* 0000800000009 * DFD

Question 9

, ,

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

Keep practising this topic