QuestionQ93
Chapter 4: Test Analysis and DesignConsider a program that calculates the factorial of a number (n). The specifications state that:
- If
n < 0, the message "Value out of range" must be issued. - If
0 ≤ n ≤ 100, the program calculates the factorial and returns the number. - If
100 ≤ n ≤ 200, the message "Value out of range" must be issued.
Which of the following statements about the equivalence partitions is correct?
- A There are 3 partitions - one for negative numbers, one for numbers up to 100 and the last one for numbers up to 200
- B The requirements are not correct because the partitions are overlapping
- C The equivalence partitions cannot be determined for this question because the error message for two partitions is exactly same
- D The equivalence partitions cannot be determined for this question because factorial of numbers close to 200 will be very large
Community Discussion