Practice · Test design
State transition testing questions and answers
Exam-style state transitions questions, generated fresh each time, with answers computed to the ISTQB Foundation Level v4.0 definitions (section 4.2.4). Every wrong answer tells you which mistake leads to it.
What the syllabus asks for
A state transition diagram shows the states a system can be in and the events that move it between them. The same model as a state table has a row per state and a column per event, and every cell is either a valid transition or an invalid one.
The syllabus names three coverage criteria. All states coverage visits every state. Valid transitions coverage (also called 0-switch coverage) exercises every valid transition. All transitions coverage exercises every valid transition and attempts every invalid one, so its coverage items are all the cells of the state table.
To calculate coverage, divide the distinct items exercised by the total items for the chosen criterion, then multiply by 100. Repeating the same transition does not add a new item. For a model with 6 states, 12 event columns, and 12 valid transitions, the totals are 6 state items, 12 valid-transition items, and 72 all-transition items. These are coverage items, not necessarily separate test cases.
What this is not
These are not questions from any ISTQB exam, and this site has no connection with ISTQB or any exam provider. Older question banks often use definitions from before version 4.0, so if an answer here disagrees with one you’ve seen elsewhere, check which syllabus it was written for. How the questions are made explains how every answer is checked.
To see the technique applied, read the worked checkout state transition example. To work your own example through, use the state transition test generator.
Other techniques