Past-paper question · 2022 October-November · Paper 23 · Q4(b)

Question 4(b) 2022 · October-November · Paper 23 · 3 marks

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

Official answer for Question 4

Part (b)

✓
One mark per mark point, max three

Question 3

✓
•
✓
input a number / quantity
✓
•
✓
… check that the number is less than (or equal to) the number in stock
✓
•
✓
… after checking for N
✓
•
✓
update Stock by that number / Stock Stock – Number
✓
•
✓
update Total by that number / Total Total + Number
✓
Cambridge IGCSE – Mark Scheme
✓
0478/23
✓
October/November 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w22_ms_23.pdf →

Show text version of question

Question 4

Part (b)

Question 4

This algorithm makes sure that there are enough wheelbarrows in stock.

START

Stock 10 Total 0

INPUT Sale

Yes Is Sale = OUTPUT Total "N"?

No STOP Stock Stock – 1

Yes OUTPUT Is Stock < 5? "Add new stock"

No

Total Total + 1 Stock Stock + 10

Question 13

Part (b)

Explain how you could extend the algorithm to allow for the sale of more than one wheelbarrow

at a time.

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

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

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

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

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

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

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

[3]

Question 14

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 0478_w22_qp_23.pdf

Keep practising this topic