QuestionQ2

Test Analysis and Test Design

A 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).
Explanation

For an equality border, simplified domain coverage requires one ON point and two nearest OFF points on opposite sides of the border. The pair (10, 10) is ON the T1 = T2 border; (10, 11) is immediately on the T1 < T2 side, and (10, 9) is immediately on the T1 > T2 side. This covers equality and both forms of inequality at the closest whole-degree values.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!