PrepAway - Latest Free Exam Questions & Answers

Which of the following gives a set of test case inputs that achieves 100% decision coverage for this fragment

Consider the following code fragment
If (a>b) and (b>c) then
b = (a+c)/2
endif
Assume that in the following options, each of the three numbers in parenthesis represent the
inputs for a test case, where the first number represents variable “a”, the second number
represents variable “b”, and the third number represents variable “c”.
Which of the following gives a set of test case inputs that achieves 100% decision coverage for
this fragment of code with the minimum number of test cases?

PrepAway - Latest Free Exam Questions & Answers

A.
(5, 3, 2)

B.
(5, 3, 2); (5, 4, 0)

C.
(5, 4, 0); (4, 5, 0)

D.
(4, 5, 0); (5, 4, 5)

Explanation:

One Comment on “Which of the following gives a set of test case inputs that achieves 100% decision coverage for this fragment


Leave a Reply