Past-paper question · 2021 October-November · Paper 21 · Q2(a)

Question 2(a) 2021 · October-November · Paper 21 · 6 marks

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

Official answer for Question 2

Part (a)

✓
One mark for reference to:

Question 6

Question 1

✓
The use a variable as an index to the array

Question 2

✓
A loop to iterate through the array

Question 3

✓
An Inner loop (with a reducing range)

Question 4

✓
Test if current element is greater than next element

Question 5

✓
if so then swap elements

Question 6

✓
Description of swap

Question 7

✓
Attempt at efficient algorithm
✓
9618/21
✓
Cambridge International AS & A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2021
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_w21_ms_21.pdf →

Show text version of question

Question 2

Part (a)

An algorithm to sort a 1D array into ascending order is described as follows:

  • move the largest value to the end
  • keep repeating until the array is sorted.

Apply the process of stepwise refinement to this algorithm in order to produce a more detailed description.

Write the more detailed description using structured English. Your explanation of the algorithm should not include pseudocode statements.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[6]

Question 6

Topic relevance

Why this question appears here

71% assigned-topic match · Algorithm design and problem-solving › Algorithms

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 9618_w21_qp_21.pdf

Keep practising this topic