Question 2(b) 2022 · October-November · Paper 21 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (b)
Question 3
Show text version of question
Question 2
Part (b)
Question 2
An algorithm has been written to:
- set 100 elements of the array Reading[1:100] to zero
- input integer values between 1 and 100
- end the process with an input of –1
- reject all other values
- count and output the number of times each value is input, starting with the largest value.
Part (b)
Describe how the algorithm could be changed so that it does not output any counts of zero.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
Question 10
Why this question appears here
54% assigned-topic match · Programming › Programming concepts
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_w22_qp_21.pdf
