CS FundamentalsHardService-company placement · ISTQB-style

A state machine has 4 states and 3 possible events, with 5 valid transitions defined. A tester also wants negative tests for every (state, event) pair that should be rejected. How many such pairs are there?

  1. A. 12
  2. B. 5
  3. C. 7
  4. D. 3

Correct answer: C. 7

A full state table has 4 × 3 = 12 cells; 5 are valid transitions, so 7 are invalid pairs, each checking that the event is rejected or ignored. Testing only the 5 valid ones is 0-switch coverage.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic