nerdexam
ISTQB

CTFL_001 · Question #183

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") 1

Sign in or unlock CTFL_001 to reveal the answer and full explanation for question #183. The question stem and answer options stay visible for context.

Test 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 How many test cases are needed to achieve 100 per cent decision coverage?

Options

  • A1
  • B2
  • C3
  • D4

Unlock CTFL_001 to see the answer

You've previewed enough free CTFL_001 questions. Unlock CTFL_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.

Topics

#decision coverage#branch coverage#control flow#white-box testing
Full CTFL_001 Practice