Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ISTQB Exam CTAL-TTA Topic 1 Question 3 Discussion

Actual exam question for ISTQB's CTAL-TTA exam
Question #: 3
Topic #: 1
[All CTAL-TTA Questions]

Consider the code fragment provided below:

How many test cases are needed for the code fragment lines 26 - 37 to achieve 100% modified condition/decision coverage?

Show Suggested Answer Hide Answer
Suggested Answer: B

Modified condition/decision coverage (MC/DC) requires each condition in a decision to be shown to independently affect the decision's outcome. For the code fragment provided, we have three independent conditions that need to be evaluated both as true and false. The minimum number of test cases needed to satisfy MC/DC for three conditions is four, which would allow each condition to be shown to independently affect the outcome of the decision.


Contribute your Thoughts:

Azzie
12 months ago
I see, that makes sense. I change my answer to C) 6 test cases then.
upvoted 0 times
...
Gladis
1 years ago
I also think it's 6 test cases because each condition needs to be met in at least one test case.
upvoted 0 times
...
Dorethea
1 years ago
Can you explain your rationale for choosing 6 test cases?
upvoted 0 times
...
Azzie
1 years ago
I disagree, I believe the answer is C) 6 test cases.
upvoted 0 times
...
Dorethea
1 years ago
I think the answer is B) 4 test cases.
upvoted 0 times
...

Save Cancel