What percentage of the transitions in the State Transition diagram is guaranteed to be covered by the test case given above?

A program controls a switch:
The program has three buttons:
– "ON" to turn the switch ON, or leaves it ON if it were ON.
– "OFF" to turn the switch OFF, or leaves it OFF if it were OFF.
– "Toggle" to change the state of the switch (turn it ON if it was OFF; turn it OFF if it was ON)
The following drawing shows drawing shows the state diagram of the program (only the states are marked; the arrows mark possible transitions and are intentionally left unlabeled)

What percentage of the transitions in the State Transition diagram is guaranteed to be covered by the test case given above?
Note: The number of covered transitions depends on the initial state of the switch! Look for the minimum coverage case.

A. 33%
B. 83%
C. 50%
D. 66%

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.