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

Question 5(b) 2025 · October-November · Paper 22 · 3 marks

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

Official answer for Question 5

Part (b)

✓
One mark per mark point, max three

Question 3

✓
MP1
✓
Checks that the length of the code input is 4 characters.
✓
MP2
✓
Checks the code against the array contents to see if it has been used before (in the last 6 codes)
✓
MP3
✓
If the code passes the tests, it is stored in the array
✓
MP4
✓
Stores the code in the lowest available index
✓
MP5
✓
Checks that the code store isn’t full before storing a new code // Outputs a code store is full message if appropriate
✓
// Algorithm continues until the code store is full.

Mark scheme 2210_w25_ms_22.pdf →

Show text version of question

Question 5

Part (b)

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

Describe the processes in the algorithm on page 6.

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

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

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

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

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

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

[3]
Topic relevance

Why this question appears here

99% assigned-topic match · Programming › Programming concepts

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

Keep practising this topic