106k views
1 vote
A daily radiation recorder for plants produces a sunshine score based on a combination of the number of hours a plant is exposed to the sun (below 3 hours, 3 to 6 hours or above 6 hours) and the average intensity of the sunshine (very low, low, medium, high).

Given the following test cases:
Hours Intensity Score
T1 1.5 v. low 10
T2 7.0 medium 60
T3 0.5 v. low 10
What is the minimum number of additional test cases that are needed to ensure full coverage of ALL VALID INPUT equivalence partitions?
A. 1
B. 2
C. 3
D. 4

User Kamaraju
by
8.1k points

1 Answer

2 votes

Final answer:

The minimum number of additional test cases needed to ensure full coverage of all valid input equivalence partitions is 3.

Step-by-step explanation:

In this case, the minimum number of additional test cases needed to ensure full coverage of all valid input equivalence partitions is 3 (option C).

To ensure full coverage, we need to test all possible combinations of hours and intensity. In this scenario, we have 3 hours partitions (below 3 hours, 3 to 6 hours, and above 6 hours) and 4 intensity partitions (very low, low, medium, and high).

So, to cover all the valid input equivalence partitions, we will need at least 3 x 4 = 12 test cases. Since we already have 3 test cases given in the question, we need an additional 12 - 3 = 9 test cases. However, the question asks for the minimum number of additional test cases, so the answer is 3 (option C).

User FloT
by
8.1k points

Related questions

asked Feb 16, 2019 62.1k views
Amisha asked Feb 16, 2019
by Amisha
7.7k points
2 answers
4 votes
62.1k views
asked Nov 8, 2022 13.6k views
Lars Noschinski asked Nov 8, 2022
by Lars Noschinski
8.9k points
2 answers
19 votes
13.6k views