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

Question 4(b) 2022 · October-November · Paper 21 · 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 for identification of error, max one

Question 3

✓
•
✓
the stock level will fall below zero / become negative
✓
One mark per mark point, max two
✓
•
✓
before subtracting the amount Sold from Stock
✓
•
✓
test that the stock level / Stock is greater than the rolls to be sold / Sold
✓
•
✓
provide a suitable error message / ask to re-input
✓
Cambridge IGCSE – Mark Scheme
✓
0478/21
✓
October/November 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w22_ms_21.pdf →

Show text version of question

Question 4

Part (b)

Question 4

This algorithm makes sure that there are enough fresh bread rolls available for customers to buy.

START

Stock 50 Total 0

INPUT Sold

Yes IS Sold = OUTPUT Total

  • 1?

No STOP Stock Stock – Sold

Yes OUTPUT IS Stock < 20? "Add new stock"

No

Total Total + Sold Stock Stock + 50

Question 13

Part (b)

Identify the problem that will occur if the input data starts with a value of 70.

Explain how you would correct this problem.

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

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

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

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

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

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

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

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

[3]

Question 14

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

Keep practising this topic