Recall & Review
beginner
What is Condition Coverage in software testing?
Condition Coverage measures whether each individual condition in a decision has been tested with both true and false outcomes at least once.
Click to reveal answer
beginner
Why is Condition Coverage important?
It helps find errors in complex decisions by ensuring every condition is tested independently, improving test thoroughness.
Click to reveal answer
intermediate
How does Condition Coverage differ from Decision Coverage?
Decision Coverage checks if each decision (like an if statement) is true or false, while Condition Coverage checks each part inside the decision separately.
Click to reveal answer
intermediate
Example: For the decision
if (A && B), what must tests cover for full Condition Coverage?Tests must make A true and false, and B true and false, regardless of the overall decision outcome.
Click to reveal answer
beginner
Can Condition Coverage guarantee all bugs are found?
No, it improves testing but does not guarantee all bugs are found because it tests conditions independently, not all combinations.
Click to reveal answer
What does Condition Coverage ensure in testing?
✗ Incorrect
Condition Coverage requires each condition to be tested with both true and false values.
Which of the following is an example of a condition in
if (X || Y)?✗ Incorrect
X and Y are single conditions inside the decision.
Condition Coverage is a type of:
✗ Incorrect
Condition Coverage is structural because it tests the code's internal logic.
If a decision has two conditions, how many condition outcomes must be tested for full Condition Coverage?
✗ Incorrect
Each condition must be tested true and false, so 2 conditions × 2 outcomes = 4.
Which coverage type tests all possible combinations of conditions?
✗ Incorrect
Multiple Condition Coverage tests all combinations of condition outcomes.
Explain what Condition Coverage is and why it is useful in software testing.
Think about testing each part inside an if statement separately.
You got /3 concepts.
Describe the difference between Condition Coverage and Decision Coverage with an example.
Focus on testing individual conditions vs whole decisions.
You got /4 concepts.