BCS-ISEB
BH0-010 · Question #292
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")…
Sign in or unlock BH0-010 to reveal the answer and full explanation for question #292. The question stem and answer options stay visible for context.
Test design techniques
Question
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 If the test cases Time = 11 and Time = 15 were input, what level of decision coverage would be achieved?
Options
- A100% or 6/6
- B50% or 3/6
- C67% or 4/6
- D83% or 5/6
Unlock BH0-010 to see the answer
You've previewed enough free BH0-010 questions. Unlock BH0-010 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.
Topics
#decision coverage#white-box testing#branch coverage#pseudo code analysis