Consider the following computational problem AlteredMult: Input -10 <= x <= 30, x ∈ Z; 12 <= y <= 24, y ∈ Z Output the integer 3*x - 7*y The following correct choices for x and y for Boundary Value Analysis C_x =(-10, -9, 1, 29, 30) C_y = (12, 13, 20, 23, 24) and the test suite I: Test Name x y Expected result T1 -10 20 -170 T2 -9 20 -167 T3 1 20 -137 T4 29 20 -53 T5 30 20 -50 T6 1 12 -252 T7 1 13 -273 T8 1 23 -483 T9 1 24 -504
Consider the following computational problem
AlteredMult:
Input -10 <= x <= 30, x ∈ Z; 12 <= y <= 24, y ∈ Z
Output the integer 3*x - 7*y
The following correct choices for x and y for Boundary Value Analysis
- C_x =(-10, -9, 1, 29, 30)
- C_y = (12, 13, 20, 23, 24)
and the test suite I:
Test Name |
x |
y |
Expected result |
T1 |
-10 |
20 |
-170 |
T2 |
-9 |
20 |
-167 |
T3 |
1 |
20 |
-137 |
T4 |
29 |
20 |
-53 |
T5 |
30 |
20 |
-50 |
T6 |
1 |
12 |
-252 |
T7 |
1 |
13 |
-273 |
T8 |
1 |
23 |
-483 |
T9 |
1 |
24 |
-504 |
WHICH ANSWERS ARE CORRECT AND WHAT MEAN choice a)
a) C_x and C_y are combined in such a way that they yield all input combinations required for Boundary Value Analysis.
b) There is at least one expected result that is correctly calculated from the values given for x and y.
c) There is at least one correct combination of C_x and C_y for Boundary Value Analysis.
d) All expected results are correct.
Step by step
Solved in 3 steps with 3 images