Past-paper question · 2015 May-June · Paper 21 · Q2
Question 2 2015 · May-June · Paper 21 · 0 marks
Reveal official mark-scheme answer
Official answer for Question 2
Question 1
mark for each error identified + suggested correction
✓
Line 1 or Small = 0: this should read Small = 999
✓
this should read IF Num < Small THEN Small = Num
✓
line 5 or IF…:
✓
this should read UNTIL Counter = 10 or
✓
line 8 or UNTIL:
✓
UNTIL Counter > = 10 or
✓
UNTIL Counter > 9
✓
PRINT Small should come after the end of the repeat loop
✓
line 7 or PRINT…:
✓
or
✓
line 8 or UNTIL:
✓
this should come before line 7
[4]
Show text version of question
Question 2
Read this section of program code that should input 10 positive numbers and then output the smallest number input.
1 Small = 0
2 Counter = 0
Topic relevance
Why this question appears here
88% 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_s15_qp_21.pdf
