ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 70 - CTAL-TTA discussion

Report
Export

Consider the following section of code:

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

print A;

Endlf

Which of the following sets of test data can be used to achieve multiple condition coverage with the least number of tests?

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

Explanation:

To achieve multiple condition coverage with the least number of tests, the selected test data set must cover all possible combinations of the conditions (A > B) or (C > D) and (E = F). Set 2, where each condition has been tested in both true and false states across the minimal test set, is the most efficient way to ensure coverage. It triggers different paths in the code with minimal redundancy, ensuring that each unique path is verified.

asked 18/09/2024
Synathia Imafidon
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first