QuestionQ2
Test Analysis and Test DesignA system accepts two natural-number inputs, T1 and T2, representing successive temperature readings. Temperature is recorded in whole degrees Celsius. It returns temperature-change information using this logic:
- IF T1 = T2, return the message “Temperature has not changed.”
- IF T1 ≠ T2, return the message “Temperature has changed.”
You apply domain-based testing to verify that the preceding requirement is implemented correctly, following the SIMPLIFIED coverage technique.
Which set of test points, interpreted as temperature pairs (T1, T2), provides 100% of this coverage?
- A (11, 11), (10, 11), (11, 12).
- B (10, 10), (10, 11), (10, 9).
- C (10, 10), (11, 11), (10,11).
- D (11,11), (10, 12), (11, 9).
Community Discussion