Past-paper question · 2022 May-June · Paper 13 · Q8

Question 8 2022 · May-June · Paper 13 · 7 marks

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

Official answer for Question 8

✓
REPEAT

Question 7

✓
INPUT reading from induction loop
✓
IF reading = pre-set value
✓
THEN
✓
send signal to raise barrier
✓
REPEAT
✓
IF light sensor activated
✓
THEN
✓
send signal to lower barrier
✓
ENDIF
✓
UNTIL light sensor activated
✓
ENDIF
✓
UNTIL system switched off
✓
Seven from:
✓
Appropriate IF statement (comparison of reading)
✓
Send signal to raise barrier after first IF
✓
Appropriate other IF statement (checking if light sensor activated)
✓
Send signal to lower barrier after 2nd IF
✓
Appropriate position and matching 1st ENDIF
✓
Appropriate position and matching 2nd ENDIF
✓
Appropriate UNTIL system switched off statement
✓
Appropriate loop checking that light sensor has been activated
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_s22_ms_13.pdf →

Show text version of question

Question 8

A
microprocessor-controlled car park barrier is used to allow cars to enter a car park. When a

car approaches the barrier, the barrier automatically rises to allow the car to enter. It does not lower until the car is safely clear of the barrier system. There is a light sensor and light beam source immediately before the barrier. No tickets are issued by the system. The system operates continuously while it is switched on.

Complete this pseudocode algorithm to describe the processing involved. Your pseudocode algorithm should include IF…THEN statements.

REPEAT INPUT reading from induction loop

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[7]

Question 9

Topic relevance

Why this question appears here

92% 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_13.pdf

Keep practising this topic