Past-paper question · 2022 May-June · Paper 22 · Q4(b)

Question 4(b) 2022 · May-June · Paper 22 · 1 mark

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)

✓
include a message to explain the value output / e. g. “The percentage of meals not served” //

Question 1

✓
outputting Hot, Cold and Serve

Mark scheme 0478_s22_ms_22.pdf →

Show text version of question

Question 4

Part (b)

Question 4

This algorithm checks the temperature of hot food being served to customers.

Error

START

Counter 0 Hot 0 Cold 0 Serve 0

INPUT Temp

Is Temp Yes Error = –1? ((Hot + Cold) / Counter) * 100

No

Is Temp Yes OUTPUT Hot Hot + 1 > 86? "Too Hot"

Counter No Counter + 1 OUTPUT Error Is Temp Yes Cold Cold + 1 < 63? No OUTPUT Serve Serve + 1 "Too Cold" END

Question 11

Part (b)

State how the final output from the algorithm could be improved.

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

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

[1]
Topic relevance

Why this question appears here

52% 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_s22_qp_22.pdf

Keep practising this topic