Bird
Raised Fist0

A ticket booking system has states: Idle, Selecting, and Booked. Transitions:

medium📝 Predict Output Q5 of Q15
Testing Fundamentals - Functional Testing Techniques
A ticket booking system has states: Idle, Selecting, and Booked. Transitions:
Idle -start_selection-> Selecting
Selecting -confirm-> Booked
Booked -cancel-> Idle
What is the state after event confirm if the system is in Selecting?
ASelecting
BIdle
CBooked
DError
Step-by-Step Solution
Solution:
  1. Step 1: Identify current state and event

    Current state is Selecting, event is confirm.
  2. Step 2: Check transition table

    Selecting -confirm-> Booked means system moves to Booked.
  3. Final Answer:

    Booked -> Option C
  4. Quick Check:

    Confirm event moves Selecting to Booked [OK]
Quick Trick: Match event with transition from current state [OK]
Common Mistakes:
MISTAKES
  • Confusing event names or states
  • Assuming no state change occurs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes