Extreme data for a month number
A program asks the user to enter the number of a month. Valid inputs are whole numbers from 1 to 12 inclusive.
Which of these values is extreme test data for this input?
A 0
B 7
C 12
D 13
[1]
- 1
Recall the definitions. Normal data is valid and typical. Abnormal (erroneous) data should be rejected. Extreme data is valid data at the limit of what is accepted. Boundary data tests both sides of a limit: the largest/smallest valid value and the value just outside it.
- 2
12 is the largest valid month, so it is extreme data. Answer C (1).
A (0) and D (13) are just outside the range: they would be rejected, so they are the invalid half of a boundary test. B (7) is normal data.
Answer
C (12)
Examiner tip
Examiner tip: extreme data is always accepted. If a value would be rejected, it cannot be extreme, however close it is to the limit.
Common mistake: choosing D because 13 is 'at the edge'. 13 is invalid; with 12, it forms a boundary test.