Past-paper question · 2015 May-June · Paper 42 · Q1

Question 1 2015 · May-June · Paper 42 · 5 marks

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

Official answer for Question 1

✓
Insert coin
✓
locked
✓
unlocked
✓
Attempt to
✓
push
✓
insert coin
✓
Pass through
✓
start
✓
Mark as follows:
✓
1 mark for both states correct
✓
1 mark for each further label
[5]

Mark scheme 9608_s15_ms_42.pdf →

Show text version of question

Question 1

A
turnstile is a gate which is in a locked state. To open it and pass through, a customer inserts

a coin into a slot on the turnstile. The turnstile then unlocks and allows the customer to push the turnstile and pass through the gate.

After the customer has passed through, the turnstile locks again. If a customer pushes the turnstile while it is in the locked state, it will remain locked until another coin is inserted.

The turnstile has two possible states: locked and unlocked. The transition from one state to another is as shown in the table below.

Current state Event Next state Locked Insert coin Unlocked Locked Push Locked Unlocked Attempt to insert coin Unlocked Unlocked Pass through Locked

Complete the state transition diagram for the turnstile:

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

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

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

start ..............................

[5]

Question 4

Topic relevance

Why this question appears here

92% assigned-topic match · Programming › Constructs

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 9608_s15_qp_42.pdf

Keep practising this topic