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.
Susana
5 days agoYoulanda
10 days agoHerschel
15 days agoKati
21 days agoAlyce
26 days agoMilly
1 month agoWendell
1 month ago