Question 3(a) 2024 · February-March · Paper 22 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (a)
Question 4
- input value, outside loop
- correct use of loop
- checking value input against contents of array …
- ... appropriate action
- correct outputs
Show text version of question
Question 3
Part (a)
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 (a)
Write an algorithm in pseudocode to input a number, MyNumber, and use a linear search to
test if that number is stored in the array. If the number is found in the array, the position in the array is output. If the number is not found in the array, “Not found” is output.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
Question 4
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
