Question 1

AQA Computer Science June 2023 Paper 1 (7516/1)AS6 marks

On the specification

3.4 Theory of computation
Question text

1 A security system uses a motion sensor, a keypad and an alarm bell. The system operates as follows: • the system is initially off • when the system is switched on it goes into sensing mode • the system can be switched off at any time by entering the correct code on the keypad • if the system detects movement while in sensing mode it goes into alert mode • after the system has been in alert mode for 10 seconds, it enters the alarm bell ringing mode • if an incorrect code is entered on the keypad, once the system has been switched on, the system remains in its current mode. Figure 1 shows a partially completed state transition diagram that represents the operation of the security system. Three of the states are labelled (X) to (Z) and events are labelled (A) to (I). Figure 1 Complete Table 1 by filling in the unshaded cells with the correct labels from Figure 1. You should write: • which labels, (X) to (Z), represent which state • which labels (A) to (I) represent which event(s). Some of the events will be assigned more than one label. Each label must only be used once. Table 1 Event / State Label(s): (A) to (I), (X) to (Z) Alarm bell ringing mode Alert mode Detect movement Enter correct code Enter incorrect code Sensing mode Switch on 10 second delay elapsed Copy the contents of all the unshaded cells in Table 1 into your Electronic Answer Document. [6 marks]