Past-paper question · 2022 May-June · Paper 11 · Q6

Question 6 2022 · May-June · Paper 11 · 6 marks

Original past-paper question for 6
Reveal official mark-scheme answer Official mark-scheme answer for 6

Official answer for Question 6

✓
Six from:

Question 6

✓
REPEAT
✓
INPUT temperature
✓
IF temperature < preset
✓
THEN
✓
IF pump switched off
✓
THEN
✓
send signal to switch pump on
✓
ENDIF
✓
ELSE
✓
IF pump switched on
✓
THEN
✓
send signal to switch pump off
✓
ENDIF
✓
ENDIF
✓
UNTIL system switched off
✓
1 mark for correct 1st IF statement
✓
1 mark for correctly positioned first action
✓
1 mark for correctly positioned 1st ENDIF
✓
1 mark for correct 2nd IF statement
✓
1 mark for correctly positioned second action
✓
1 mark for correctly positioned 2nd ENDIF
✓
1 mark for correctly positioned 3rd ENDIF
✓
1 mark for correct UNTIL statement…
✓
…1 for correct position of correct UNTIL statement
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_s22_ms_11.pdf →

Show text version of question

Question 6

Many houses in cooler countries have central heating systems. In a central heating system, microprocessors are used to control the pump which sends water from the boiler to the individual heaters.

Complete the pseudocode algorithm to show the processing which takes place in this microprocessor-controlled central heating system. The algorithm must prevent attempting to switch the pump on when it is already on and attempting to switch the pump off when it is already off. You may assume temperature is the variable representing the actual temperature of the house and preset represents the required temperature of the house.

REPEAT INPUT temperature IF temperature < preset THEN

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[6]

Question 9

Topic relevance

Why this question appears here

80% assigned-topic match · Algorithms and flowcharts › Algorithms and flowcharts

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 9626_s22_qp_11.pdf

Keep practising this topic