Past-paper question · 2018 October-November · Paper 22 · Q5(a)

Question 5(a) 2018 · October-November · Paper 22 · 6 marks

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

Official answer for Question 5

Part (a)

Question 6

✓
Height
✓
Depth
✓
Chlorine
✓
OK
✓
OUTPUT

Question 6

✓
2.5

Question 2

✓
True
✓
Pool OK to use
✓
Height
✓
Depth
✓
Chlorine
✓
OK
✓
OUTPUT

Question 4

Question 3

✓
1.5
✓
True
✓
Water too deep
✓
False
✓
Height
✓
Depth
✓
Chlorine
✓
OK
✓
OUTPUT

Question 6

✓
3.5

Question 4

✓
True
✓
Water too deep
✓
False
✓
Too much chlorine add more water
✓
1 mark for first 4 columns in each trace table (max 3)
✓
1 mark for the output in each trace table (max 3)

Mark scheme 2210_w18_ms_22.pdf →

Show text version of question

Question 5

Part (a)

Question 5

The flowchart checks the level of chlorine and the depth of water compared to the height of the

swimming pool. Error messages are output if a problem is found.

START

INPUT Height, Depth, Chlorine

OK True

OUTPUT Is Depth > Yes "Water too Height/2 ? deep"

No OUTPUT Is Depth < Yes "Water too Height/3 ? shallow"

No OK False

Yes OUTPUT "Too Is Chlorine much chlorine >3 ? add more water" No

OUTPUT "Too Yes little chlorine Is Chlorine <1 ? add more chlorine" No

No Is OK = True ?

Yes

OUTPUT "Pool OK to use"

END

Question 11

Part (a)

Complete the trace tables for each set of input data.

Input data: 6, 2.5, 2

Height Depth Chlorine OK OUTPUT

Input data: 4, 3, 1.5

Height Depth Chlorine OK OUTPUT

Input data: 6, 3.5, 4

Height Depth Chlorine OK OUTPUT

[6]
Topic relevance

Why this question appears here

99% 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 2210_w18_qp_22.pdf

Keep practising this topic