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

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.