ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 56 - CTAL-TTA discussion

Report
Export

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?

A.
2 test cases
Answers
A.
2 test cases
B.
4 test cases
Answers
B.
4 test cases
C.
6 test cases
Answers
C.
6 test cases
D.
8 test cases
Answers
D.
8 test cases
Suggested answer: B

Explanation:

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.

asked 18/09/2024
Thao Nguyen
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first