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?
- (5, 3, 2)
- (5, 3, 2); (5, 4, 0)
- (5, 4, 0); (4, 5, 0)
- (4, 5, 0); (5, 4, 5)
Reveal Solution Next Question