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.
Ernest
27 days agoHollis
1 month agoCarol
1 month agoVeronika
1 month agoGearldine
2 months agoDeonna
2 months agoKarma
2 months agoAlonzo
2 months agoLatia
2 months agoHoward
2 months agoAn
3 months agoElden
3 months agoSusana
4 months agoYoulanda
4 months agoHerschel
4 months agoKati
4 months agoAlyce
4 months agoMilly
4 months agoWendell
5 months ago