Which of the test cases below will exercise both outcomes from decision 2?
Refer to the exhibit -
Which of the test cases below will exercise both outcomes from decision 2?
Refer to the exhibit -
To exercise both outcomes from Decision 2 (where P is equal to Q or P is not equal to Q), we need test cases where both conditions are evaluated. The first set of values in Option B (P = 36, Q = 36) ensures that P and Q are equal, triggering the true branch of Decision 2, resulting in the 'Draw' message. The second set of values in Option B (P = 37, Q = 35) ensures that P and Q are not equal, triggering the false branch of Decision 2, resulting in the 'You win' message in combination with the logic preceding Decision 2. Therefore, Option B covers both possible outcomes from Decision 2.
B is correct