ISTQB Certified Tester Foundation Level v4.0 — Question 17

Consider a program that computes the factorial of a number (n). From the specifications you know that:

• If n < 0, a 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 message "Value out of range" must be issued

Which of the following statements about the equivalence partitions is CORRECT?

Answer options

Correct answer: B

Explanation

The correct answer is B because the defined partitions for the ranges overlap, particularly between 100 and 200, which leads to ambiguity in determining valid input ranges. Options A, C, and D are incorrect as they either misinterpret the overlapping issue, incorrectly state that the error messages prevent partitioning, or focus on the size of factorials instead of partition validity.