If the pseudocode below were a programming language ,how many tests are required to achieve 100% statement coverage?

1. If x=3 then 2. Display_messageX; 3. If y=2 then 4. Display_messageY; 5. Else 6. Display_messageZ; 7. Else 8. Display_messageZ;

  • A. 1
  • B. 2
  • C. 3
  • D. 4

Answer: Option C