Question 5(c) 2025 · October-November · Paper 22 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (c)
Question 4
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.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
* 0000800000009 * DFD
Question 9
, ,
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 2210_w25_qp_22.pdf
