If the pseudocode below were a programming language ,how many tests are required to achieve 100% statement coverage?
Software Testing Exam from International Software Testing Qualifications Board (ISTQB)
(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:C
(Continued on next question...)
Other Interview Questions
|