nerdexam
iSQI

CTAL-TTA_001 · Question #32

CTAL-TTA_001 Question #32: Real Exam Question with Answer & Explanation

Sign in or unlock CTAL-TTA_001 to reveal the answer and full explanation for question #32. The question stem and answer options stay visible for context.

Question

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

  • 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)

Unlock CTAL-TTA_001 to see the answer

You've previewed enough free CTAL-TTA_001 questions. Unlock CTAL-TTA_001 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full CTAL-TTA_001 Practice