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?
Equivalence partitioning involves dividing input data into partitions that are treated the same by the system under test. The given specifications create overlapping partitions:
For n<0n < 0n<0, an error message 'Value out of range' is issued.
For 0<n<1000 < n < 1000<n<100, the factorial is calculated.
For 100<n<200100 < n < 200100<n<200, the same error message 'Value out of range' is issued.
However, the range between 0 and 100 is exclusive of 0 and 100, meaning that the partitions overlap and create ambiguity for the boundary values. Thus, the correct statement is that the requirements are not correct because the partitions are overlapping.
Karma
3 days agoAlonzo
8 days agoLatia
14 days agoHoward
19 days agoAn
24 days agoElden
29 days agoSusana
2 months agoYoulanda
2 months agoHerschel
2 months agoKati
2 months agoAlyce
2 months agoMilly
3 months agoWendell
3 months ago