Past-paper question · 2019 May-June · Paper 22 · Q2(b)

Question 2(b) 2019 · May-June · Paper 22 · 4 marks

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

Official answer for Question 2

Part (b)

✓
MP1
✓
Add Total ← 0 // Total ← Number

Question 4

✓
MP2
✓
Add Total ← Total + Number
✓
MP3
✓
Add PRINT "Total is ", Total
✓
MP4
✓
All positioning explained / seen
✓
Count ← 1
✓
INPUT Number
✓
High ← Number
✓
Low ← Number
✓
Total ← Number
✓
REPEAT
✓
INPUT Number
✓
Total ← Total + Number
✓
IF Number > High
✓
THEN
✓
High ← Number
✓
ENDIF
✓
IF Number < Low
✓
THEN
✓
Low ← Number
✓
ENDIF
✓
Count ← Count + 1
✓
UNTIL Count > 99
✓
PRINT "Largest Number is ", High
✓
PRINT "Smallest Number is ", Low
✓
PRINT "Total is ", Total
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
May/June 2019
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s19_ms_22.pdf →

Show text version of question

Question 2

Part (b)

Part (b)

Show how you would change the corrected algorithm to total the numbers and print the total.

Use a variable Total.

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

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

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

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

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

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

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

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

[4]

Question 10

Topic relevance

Why this question appears here

99% 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_s19_qp_22.pdf

Keep practising this topic