For Multiple Condition Coverage, each combination of conditions must be tested to ensure all possible outcomes are covered. Given the decision IF X < 5 OR Y > 10 THEN and the test inputs X=6 and Y=12 and X=5 and Y=10, we need to find additional test cases to achieve full coverage. The conditions are:
Condition 1: X < 5
Condition 2: Y > 10
Let's examine the options:
Option A:
X=4 and Y=7 (X < 5 is true, Y > 10 is false; overall decision true)
X=10 and Y=15 (X < 5 is false, Y > 10 is true; overall decision true)
X=8 and Y=8 (X < 5 is false, Y > 10 is false; overall decision false)
This set covers all possible outcomes but does not provide the minimal set for MC/DC.
Option B:
X=0 and Y=10 (X < 5 is true, Y > 10 is false; overall decision true)
X=4 and Y=4 (X < 5 is true, Y > 10 is false; overall decision true)
This set does not fully achieve multiple condition coverage as it misses the combination where X < 5 is false and Y > 10 is true.
Option C:
X=2 and Y=12 (X < 5 is true, Y > 10 is true; overall decision true)
X=6 and Y=4 (X < 5 is false, Y > 10 is false; overall decision false)
This set, combined with the initial inputs (X=6 and Y=12, X=5 and Y=10), ensures that all condition combinations are tested, achieving full multiple condition coverage.
Option D:
X=3 and Y=10 (X < 5 is true, Y > 10 is false; overall decision true)
X=0 and Y=15 (X < 5 is true, Y > 10 is true; overall decision true)
This set does not fully achieve multiple condition coverage as it does not test the combination where both conditions are false.
Therefore, the correct answer is C. X=2 and Y=12, X=6 and Y=4.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit