Past-paper question · 2022 October-November · Paper 23 · Q4(a)
Question 4(a) 2022 · October-November · Paper 23 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
✓
One mark for each correct column, max four
Question 4
✓
Stock
✓
Total
✓
Sale
✓
OUTPUT
Question 10
✓
0
Question 9
Question 1
✓
Y
Question 8
Question 2
✓
Y
Question 7
Question 3
✓
Y
Question 6
Question 4
✓
Y
Question 5
Question 5
✓
Y
Question 4
Question 6
✓
Y
Question 14
✓
N
✓
Add new stock
Question 6
Show text version of question
Question 4
Part (a)
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 (a)
Complete the trace table for the algorithm using this input data:
“Y”, “Y”, “Y”, “Y”, “Y”, “Y”, “N”
Stock Total Sale 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_23.pdf
