Q: 4
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? 2 credits [K3]
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.