Question 5(a) 2025 · October-November · Paper 22 · 27 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (a)
Question 6
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
Question 1
Question 2
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
[6] OUTPUT aBcd 1532 Face 63q8
* 0000800000008 * DFD
Question 8
, ,
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 2210_w25_qp_22.pdf
