CTFL_SYLL_4.0 · Question #188
An anti-intrusion system is battery powered and is activated by pressing the only available button. To deactivate the system, the operator must enter a PIN code. The system will stay in alert mode…
The correct answer is C. 3. In the given state transition diagram, we need to identify the minimum number of test cases required to cover every unique sequence of exactly 4 states/3 transitions starting and ending in the "Inactive" state. Alarm bell rings Test Case Analysis: Inactive -> Active -> Inactive…
Question
An anti-intrusion system is battery powered and is activated by pressing the only available button. To deactivate the system, the operator must enter a PIN code. The system will stay in alert mode within a configurable timeout and an alarm bell will ring if the system is not deactivated before the timeout expires. The following state transition diagram describes the behavior of the system:
What is the minimum number of test cases needed to cover every unique sequence of exactly 4 states/3 transitions starting and ending in the "Inactive" state? (note that "Inactive" is not a final state in the diagram)
Exhibit
Options
- A1
- B2
- C3
- D4
How the community answered
(38 responses)- A5% (2)
- B26% (10)
- C55% (21)
- D13% (5)
Explanation
In the given state transition diagram, we need to identify the minimum number of test cases required to cover every unique sequence of exactly 4 states/3 transitions starting and ending in the "Inactive" state. Alarm bell rings Test Case Analysis: Inactive -> Active -> Inactive -> Active -> Inactive Sequence: Press Button, Enter PIN, Press Button, Enter PIN Inactive -> Active -> Alert Mode -> Inactive Sequence: Press Button, Sensor Activated, Enter PIN Inactive -> Active -> Alert Mode -> Alarm bell rings -> Inactive Sequence: Press Button, Sensor Activated, Timeout expired, Press Button These sequences cover every unique combination of exactly 4 states and 3 transitions starting and ending in the "Inactive" state.
Topics
Community Discussion
No community discussion yet for this question.
