Question 2(a) 2019 · May-June · Paper 22 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (a)
Question 1
mark for each error identified + suggested correction
Question 4
- Low ← Count should be Low ← Number
- Number > Low should be Number < Low
- UNTIL Count = 99 should be UNTIL Count > 99 or UNTIL
- PRINT "Largest Number is ", Number should be PRINT
Show text version of question
Question 2
Part (a)
An algorithm has been written in pseudocode to input 100 numbers, select and print the largest number and smallest number.
Count 1 INPUT Number High Number Low Count REPEAT INPUT Number IF Number > High THEN High Number ENDIF IF Number > Low THEN Low Number ENDIF Count Count + 1 UNTIL Count = 99 PRINT "Largest Number is ", Number PRINT "Smallest Number is ", Low
Find the four errors in the pseudocode and suggest a correction for each error.
Error 1 ........................................................................................................................................
Correction .................................................................................................................................
...................................................................................................................................................
Error 2 ........................................................................................................................................
Correction .................................................................................................................................
...................................................................................................................................................
Error 3 ........................................................................................................................................
Correction .................................................................................................................................
...................................................................................................................................................
Error 4 ........................................................................................................................................
Correction .................................................................................................................................
...................................................................................................................................................
Question 9
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_s19_qp_22.pdf
