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

Question 4(a) 2022 · May-June · Paper 22 · 7 marks

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

Official answer for Question 4

Part (a)

✓
One mark for each correct column

Question 7

✓
Counter
✓
Hot
✓
Cold
✓
Serve
✓
Temp
✓
Error
✓
OUTPUT
✓
0
✓
0
✓
0
✓
0

Question 1

Question 1

Question 75

Question 2

Question 2

Question 78

Question 3

Question 3

Question 84

Question 4

Question 1

Question 87

✓
Too Hot

Question 5

Question 2

Question 91

✓
Too Hot

Question 6

Question 4

Question 80

Question 7

Question 5

Question 75

Question 8

Question 6

Question 70

Question 9

Question 7

Question 65

Question 10

Question 1

Question 62

✓
Too Cold
  • 1

Question 30

Question 30

✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
May/June 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s22_ms_22.pdf →

Show text version of question

Question 4

Part (a)

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 (a)

Complete the trace table for the algorithm using this input data:

75, 78, 84, 87, 91, 80, 75, 70, 65, 62, –1, 20

Counter Hot Cold Serve Temp Error OUTPUT

[7]
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 2210_s22_qp_22.pdf

Keep practising this topic