nerdexam
BCS-ISEB

BH0-010 · Question #379

Consider the following pseudo code 1. Begin 2. Read Gender 3. __Print "Dear" 4. If Gender = `female' 5. Print ("Ms") 6. Else 7. __Print ( "Mr") 8. Endif 9. End How many test cases are needed to…

The correct answer is B. 2. See the full explanation below for the reasoning.

Question

Consider the following pseudo code 1. Begin 2. Read Gender 3. __Print "Dear" 4. If Gender = `female' 5. Print ("Ms") 6. Else 7. __Print ( "Mr") 8. Endif 9. End How many test cases are needed to achieve 100 per cent decision coverage?

Options

  • A1
  • B2
  • C3
  • D4

How the community answered

(35 responses)
  • A
    9% (3)
  • B
    83% (29)
  • C
    6% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full BH0-010 Practice