Past-paper question · 2022 October-November · Paper 21 · Q4(a)
Question 4(a) 2022 · October-November · Paper 21 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
✓
One mark for each correct column, max four
Question 4
✓
Sold
✓
Stock
✓
Total
✓
OUTPUT
Question 50
✓
0
Question 24
Question 26
Question 24
Question 12
Question 14
✓
Add new stock
Question 64
Question 36
Question 6
Question 58
Question 42
Question 30
Question 28
Question 72
Question 12
Question 16
✓
Add new stock
Question 66
Question 84
Question 18
Question 48
✓
102
- 1
✓
102
Show text version of question
Question 4
Part (a)
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 (a)
Complete the trace table for the algorithm using this input data:
Sold Stock Total OUTPUT
[4]
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
