Multiple choice technology testing

Analyse the following highly simplified procedure: Ask: “What type of ticket do you require, single or return?” IF the customer wants ‘return’ Ask: “What rate, Standard or Cheap-day?” IF the customer replies ‘Cheap-day’ Say: “That will be £11:20” ELSE Say: “That will be £19:50” ENDIF ELSE Say: “That will be £9:75” ENDIF Now decide the minimum number of tests that are needed to ensure that all the questions have been asked, all combinations have occurred and all replies given.

  1. 3

  2. 4

  3. 5

  4. 6

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The procedure has three distinct paths: single ticket, return standard, and return cheap-day. Executing these three tests covers all questions, decision combinations, and outcomes. Fewer tests would miss paths, while more tests are redundant for basic coverage.