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

Question 2 2017 · October-November · Paper 22 · 6 marks

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

Official answer for Question 2

Question 1

mark for each, there may be other solutions, award full marks for any working solution

Question 6

✓
any six from:
✓
initialise total (outside loop)
✓
Input number of numbers (outside loop with validation)
✓
Loop using input value
✓
Input number (inside loop)
✓
Update Total (inside loop)
✓
Calculate average
✓
Print average and total (outside loop)
✓
Sample algorithm:
✓
INPUT NumberCount
✓
Total Å 0
✓
FOR Count Å 1 TO NumberCount
✓
INPUT Number
✓
Total Å Total + Number
✓
NEXT
✓
Average Å Total/NumberCount
✓
PRINT Total, Average
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2017
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w17_ms_22.pdf →

Show text version of question

Question 2

Write an algorithm using either pseudocode or a flowchart, to:

  • input a positive integer
  • use this value to set up how many other numbers are to be input
  • input these numbers
  • calculate and output the total and the average of these numbers.

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

......................................................................................................................................................[6]

Question 7

Topic relevance

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_w17_qp_22.pdf

Keep practising this topic