Past-paper question · 2016 May-June · Paper 22 · Q2
Question 2 2016 · May-June · Paper 22 · 0 marks
Reveal official mark-scheme answer
Official answer for Question 2
(i)
1 mark for each improvement
✓
use FOR … NEXT instead of REPEAT … UNTIL
✓
Move PRINT to after the end of the loop
✓
Add error checking to check that the value input is positive
[3]
(ii)
3 marks maximum, 1 mark for each improvement correctly included.
✓
Sample answer below
Show text version of question
Question 2
Read this section of program code that inputs 10 positive numbers and then outputs the total.
1 Total = 0 2 Counter = 0
Topic relevance
Why this question appears here
99% 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 2210_s16_qp_22.pdf
