Past-paper question · 2016 October-November · Paper 22 · Q2

Question 2 2016 · October-November · Paper 22 · 0 marks

Original past-paper question for 2
Reveal official mark-scheme answer

Official answer for Question 2

Question 1

mark for identifying each error, 1 mark for the corresponding change

  • line 2 or Counter = 100
  • Counter = 0
  • line 6 or UNTIL Num < 0
  • UNTIL Num >= 0
  • line 7 or Total = Total + 1
  • Total = Total + Num
  • line 8 or Counter = Counter + Num
  • Counter = Counter + 1
[8]

Mark scheme 2210_w16_ms_22.pdf →

Show text version of question

Question 2

Read this section of program code that inputs positive numbers, discards any negative numbers and then outputs the average. An input of zero ends the process.

1 Total = 0 2 Counter = 100

Topic relevance

Why this question appears here

85% 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_w16_qp_22.pdf

Keep practising this topic