Past-paper question · 2024 May-June · Paper 22 · Q6(b)

Question 6(b) 2024 · May-June · Paper 22 · 4 marks

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

Official answer for Question 6

Part (b)

✓
One mark for each point

Question 4

✓
MP1
✓
adding one to counter
✓
MP2
✓
correct use of selection, if current value > 100 THEN … ENDIF
✓
One mark for each point, max two
✓
MP3
✓
input more than one number
✓
MP4
✓
setting counter to zero before loop
✓
MP5
✓
correct use of loop including terminal condition
✓
MP6
✓
output value of counter after loop
✓
Example:
✓
Counter 0
✓
INPUT Value
✓
WHILE Value <> 9999.9
✓
IF Value > 100
✓
THEN
✓
Counter Counter + 1
✓
ENDIF
✓
INPUT Value
✓
ENDWHILE
✓
OUTPUT Counter
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s24_ms_22.pdf →

Show text version of question

Question 6

Part (b)

Question 6

Totalling and counting are standard methods of solution.

Numbers are input. The number 9999.9 is the last number to be input and is ignored.

Part (b)

Write an algorithm in pseudocode to count and output the number of input values that are

greater than 100. You do not need to validate the input.

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

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

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

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

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

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

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

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

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

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

[4]

Question 6

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

Keep practising this topic