Interview Questions

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

Software Testing Exam from The Information Systems Examinations Board (ISEB)


(Continued from previous question...)

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

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:

(Continued on next question...)

Other Interview Questions