Question 4(a) 2017 · May-June · Paper 22 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
- Count
Question 2
- Count
Question 1
- UNTIL Count > 100
- UNTIL Count >= 100 or UNTIL Count = 100
Show text version of question
Question 4
Part (a)
Question 4
An algorithm has been written in pseudocode to input 100 numbers and print out the sum.
Count ← 0 Sum ← 0 REPEAT INPUT Number Sum ← Sum + Number Count ← Count + 1 UNTIL Count > 100 PRINT Sum
Part (a)
Find the error in the pseudocode and suggest a correction.
Error ...........................................................................................................................................
Correction .................................................................................................................................
...................................................................................................................................................
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_s17_qp_22.pdf
