Bird
0
0

A traffic light system has states: Green, Yellow, and Red. The transitions are:

hard📝 Application Q8 of 15
Testing Fundamentals - Functional Testing Techniques
A traffic light system has states: Green, Yellow, and Red. The transitions are:
Green -timer-> Yellow
Yellow -timer-> Red
Red -timer-> Green
How many unique state transitions should be tested to cover all possible state changes?
A6
B3
C9
D1
Step-by-Step Solution
Solution:
  1. Step 1: Identify all transitions listed

    There are three transitions: Green to Yellow, Yellow to Red, and Red to Green.
  2. Step 2: Count unique transitions

    Each transition is unique and must be tested once, so total is 3.
  3. Final Answer:

    3 -> Option B
  4. Quick Check:

    Number of transitions = 3 [OK]
Quick Trick: Count each unique arrow between states [OK]
Common Mistakes:
  • Counting transitions in both directions twice
  • Assuming all state pairs are transitions
  • Confusing states with transitions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes