Computer Science · May / June 2023 · Paper 22 · Question 9
0478
As printed in the paper
The question as text
This flowchart represents an algorithm. No No No Yes Yes Yes IS X[C] < X[C + 1]? F 0 C 1 T X[C] X[C] X[C + 1] X[C + 1] T F 1 C C + 1 START STOP IS C = 5? IS F = 0?
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
9(a)[5]
One mark for each column F, C and T
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
10
1
5
7
11
0
1
10
1
2
1
10
10
1
3
5
10
10
1
4
7
10
5
0
1
2
3
4
5
9(b)[2]
One mark for each point
(bubble) sort data in arrayin ascending order
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

