Câu 16: ATTA: Advanced Technical Test Analyst
Consider the following code fragmentIf (a>b) and (b>c) then -b = (a+c)/2endifAssume 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 va…
Nội dung câu hỏi
Consider the following code fragmentIf (a>b) and (b>c) then -b = (a+c)/2endifAssume 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?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. (5, 3, 2)
- B. (5, 3, 2); (5, 4, 0)
- C. (5, 4, 0); (4, 5, 0) — đáp án hiện tại
- D. (4, 5, 0); (5, 4, 5)
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.