ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 129 - CTAL-TTA discussion

Report
Export

Consider the following section of code:

If ((A > B) or (C > D)) and (E = F) then

print A:

Endif

Which of the following sets of test data can be used to achieve Modified Condition/Decision Coverage with the least number of tests?

A.
Set 3
Answers
A.
Set 3
B.
Set 4
Answers
B.
Set 4
C.
Set 2
Answers
C.
Set 2
D.
Set 1
Answers
D.
Set 1
Suggested answer: A

Explanation:

For Modified Condition/Decision Coverage (MC/DC), each condition within a decision must independently affect the decision's outcome. The provided sets of values need to be analyzed to ensure that each component of the decision ((A > B) or (C > D) and (E = F)) can independently influence the result of the combined expression. Set 3 includes variations for all variables that allow each condition to be tested both true and false independently while keeping the overall expression's outcome affected. This choice provides the most efficient path to achieving MC/DC with minimal tests.

asked 18/09/2024
Matthew Cole
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first