S/W Quality Assurance Certification Question:

Suppose 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

S/W Quality Assurance Interview Question
S/W Quality Assurance Interview Question

Answer:

c. 3


Previous QuestionNext Question
Explain Which of the following is the odd one out? a. white box b. glass box c. structural d. functionalExplain which of the following statements are true? a. Faults in program specifications are the most expensive to fix. b. Faults in code are the most expensive to fix. c. Faults in requirements are the most expensive to fix d. Faults in designs are the most expensive to fix.