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

Question 6(b) 2024 · May-June · Paper 21 · 3 marks

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

Official answer for Question 6

Part (b)

✓
One mark per mark point

Question 3

✓
A set of numbers is input / stored in an array
✓
The numbers are sorted / Bubble sort into (ascending) order
✓
The middle / median value is found / output
✓
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 (b)

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 (b)

Outline the processes involved in the algorithm shown in the flowchart on page 6.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[3]
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