Question 3(b) 2024 · February-March · Paper 22 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (b)
Question 4
- use of inner and outer loop
- correct use of loops
- checking adjacent values in array …
- ... swap if required
- correct stopping condition
Show text version of question
Question 3
Part (b)
Question 3
A linear search and a bubble sort are standard methods of solution.
Fifty numbers are already stored in the array Values[1:50]
Part (b)
Write an algorithm in pseudocode to sort the array Values[1:50] into ascending order
using a bubble sort.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
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 0478_m24_qp_22.pdf
