Past-paper question · 2019 October-November · Paper 22 · Q5

Question 5 2019 · October-November · Paper 22 · 4 marks

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

Official answer for Question 5

✓
Totalling:

Question 4

  • Adding the weight of each basket to the total weight as each weight is
✓
entered
  • Total = Total + Weight
✓
Counting:
  • Adding one to/incrementing the number of baskets as each weight is
✓
entered
  • BasketCount = BasketCount + 1
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2019
✓
Questio
✓
Answer
✓
Mark
✓
n
✓
s

Mark scheme 2210_w19_ms_22.pdf →

Show text version of question

Question 5

A
programmer writes a program to weigh baskets of fruit in grams, keeping a total of the weight

and counting the number of baskets. The total weight is stored in a variable Total and the number of baskets is stored in a variable BasketCount.

Explain, including examples of programming statements, how totalling and counting could be used in this program.

Totalling .............................................................................................................................................

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

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

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

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

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

Counting ...........................................................................................................................................

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

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

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

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

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

[4]

Question 11

Topic relevance

Why this question appears here

98% 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_w19_qp_22.pdf

Keep practising this topic