How many test cases are needed to achieve 100 per cent decision coverage?

Consider the following pseudo code:
1 Begin
2 Read Time
3 If Time < 12 Then
4 Print(Time, "am")
5 Endif
6 If Time > 12 Then
7 Print(Time 12, "pm")
8 Endif
9 If Time = 12 Then
10 Print (Time, "noon")
11 Endif
12 End
How many test cases are needed to achieve 100 per cent decision coverage?
A. 1
B. 2
C. 3
D. 4

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.