Past-paper question · 2015 October-November · Paper 23 · Q2
Question 2 2015 · October-November · Paper 23 · 0 marks
Reveal official mark-scheme answer
Official answer for Question 2
✓
One mark for each error identified + suggested correction
✓
line 5 or IF Num < 0: this should read IF Num > 0 (THEN Total = Total + Num)
✓
line 6 or (IF Num > 0 ) THEN Counter = Counter + 1:
✓
this should read (IF Num > 0 THEN)Poscount = Poscount + 1
✓
line 7 Average = Total/Poscount: this should come after the end of the repeat loop
✓
line 9 or PRINT Num: this should read PRINT Average
[4]
Show text version of question
Question 2
Read this section of program code that should input 50 numbers and then output the average of the positive numbers only.
1 Total = 0
2 PosCount = 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_w15_qp_23.pdf
