Past-paper question · 2023 May-June · Paper 22 · Q9(a)
Question 9(a) 2023 · May-June · Paper 22 · 35 marks
Reveal official mark-scheme answer
Official answer for Question 9
Part (a)
✓
One mark for each column F, C and T
Question 5
✓
Two marks for columns X[1] to X[5] all entries correct or
✓
One mark for columns X[1] to X[5] with one error
✓
F
✓
C
✓
X[1]
✓
X[2]
✓
X[3]
✓
X[4]
✓
X[5]
✓
T
Question 10
Question 1
Question 5
Question 7
Question 11
✓
0
Question 1
Question 10
Question 1
Question 2
Question 1
Question 10
Question 10
Question 1
Question 3
Question 5
Question 10
Question 10
Question 1
Question 4
Question 7
Question 10
Question 5
✓
0
Question 1
Question 2
Question 3
Question 4
Question 5
Show text version of question
Question 9
Part (a)
Question 9
This flowchart represents an algorithm.
START
F 0
C
1
IS X[C] < No T X[C] X[C + 1]?
Yes X[C] X[C + 1]
X[C + 1] T
F 1
C
C + 1
No IS C = 5?
Yes
No IS F = 0?
Yes
STOP
Question 9
Part (a)
The array X[1:5] used in the flowchart contains this data:
X[1] X[2] X[3] X[4] X[5]
10 1 5 7 11
Complete the trace table by using the data given in the array.
F C X[1] X[2] X[3] X[4] X[5] T
10 1 5 7 11
[5]
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 2210_s23_qp_22.pdf
