Exam4Training

Which of the following test cases will satisfy this criterion?

A software component has the code shown below:

Program BiggestA,

Biggest: Integer

Begin

Read A

Biggest = 10

While A > 0

Do

If A > Biggest

Then Biggest = A

Endif

Read A

Enddo

End

The component has exit criteria for component testing that include 100% statement coverage .

Which of the following test cases will satisfy this criterion?
A . 0
B . 10, 0
C . 10, 5, 0
D . 10, 11, 0

Answer: D

Exit mobile version