Question 6 Flashcards
1
Q
What is the probable content of this exam question?
A
(1) Draw a state chart.
2
Q
In a shared hallway, the light is operated by a press-button switch. Initially, the light is switched off. Whenever the button is pressed, the light is switched on. As an energy saving measure, the light only remains on for 2 minutes after being switched on,then switches itself off again automatically.
Draw a state chart diagram for the hallway light, assuming the existence of an event, ‘after(2 minutes)’ that occurs after 2 minutes of remaining in a given state.
A
See specimen paper solution booklet for answer.