QuestionQ68

VerifiedChapter 4: Test Analysis and Design

A temperature controller accepts temperature input in whole degrees Celsius (°C). For 0 degrees, it returns the message ‘zero temperature’. For positive temperatures, it returns the message ‘positive temperature’. For negative temperatures, it returns the message ‘negative temperature’.

You apply a 3-value boundary value analysis to test the controller’s behavior.

Which test-data set provides the HIGHEST coverage?

Explanation

The decision boundary is 0°C. Three-value boundary value analysis covers the boundary itself and the nearest valid values immediately below and above it: -1°C, 0°C, and 1°C. This covers all three outcome regions and both sides of the boundary.

Community Discussion

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