nerdexam
iSQI

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…

Test Analysis and Design

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

CTFL_SYLL_4.0 question #188 exhibit

Options

  • A1
  • B2
  • C3
  • D4

How the community answered

(38 responses)
  • A
    5% (2)
  • B
    26% (10)
  • C
    55% (21)
  • D
    13% (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

#state transition testing#transition coverage#test case minimization#state diagram

Community Discussion

No community discussion yet for this question.

Full CTFL_SYLL_4.0 Practice