State transition testing · Question 54 of 60
A smart bike lock has the states Locked, Unlocked and Alarm. Valid are: correct code (Locked→Unlocked), close (Unlocked→Locked), shake (Locked→Alarm) and correct code (Alarm→Unlocked). How many invalid transitions does the state table show?
1 answer is correct. Hard Created with AI
Show answer
Answer
- B 5
Explanation
Three states times three events (correct code, close, shake) give 9 cells; 4 are valid, leaving 5 invalid ones.