Past-paper question · 2024 May-June · Paper 21 · Q6(a)

Question 6(a) 2024 · May-June · Paper 21 · 35 marks

Original past-paper question for 6(A)
Original past-paper question for 6(A)
Reveal official mark-scheme answer Official mark-scheme answer for 6(A)

Official answer for Question 6

Part (a)

✓
One mark per mark point

Question 7

✓
MP1
✓
Correct Limit column
✓
MP2
✓
Correct Count column
✓
MP3
✓
Array columns for input stage
✓
MP4
✓
Array columns for sort stage
✓
MP5
✓
Correct Flag column
✓
MP6
✓
Correct Swap column
✓
MP7
✓
Correct Result and OUTPUT columns
✓
Numbers
✓
Limit
✓
Count
[1]
[2]
[3]
[4]
[5]
[6]
[7]
✓
Flag
✓
Swap
✓
Result
✓
OUTPUT

Question 7

Question 1

Question 47

Question 2

Question 50

Question 3

Question 52

Question 4

Question 60

Question 5

Question 80

Question 6

Question 63

Question 7

Question 70

Question 8

✓
TRUE

Question 1

✓
FALSE

Question 2

Question 3

Question 4

✓
2210/21
✓
Cambridge O Level – Mark Scheme
✓
May/June 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s24_ms_21.pdf →

Show text version of question

Question 6

Part (a)

Question 6

The flowchart represents an algorithm.

START

Result Limit DIV 2 + 1 INPUT Limit OUTPUT Numbers[Result] Count 1

INPUT Numbers[Count] STOP

Count Count + 1

No IS Count > Limit?

IS Numbers[Count] > No Yes Numbers[Count + 1]? Flag TRUE

Yes

Swap Numbers[Count] IS Flag = No TRUE?

Numbers[Count] Numbers[Count + 1] Yes

Flag False Numbers[Count + 1] Swap Count 1

Flag True

Yes IS Count > No Limit – 1?

Count Count + 1

Question 7

Part (a)

Complete the trace table for the input data:

Numbers

Limit Count

[1]
[2]
[3]
[4]
[5]
[6]

[7] Flag Swap Result OUTPUT

[7]

Question 8

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_s24_qp_21.pdf

Keep practising this topic