If the pseudo code 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;
Submitted by: SudhaC. 3
But I want to know why 3 test cases to cover 100% Statement coverage. Anyone please explain.
Thanks
Submitted by: Sudha
But I want to know why 3 test cases to cover 100% Statement coverage. Anyone please explain.
Thanks
Submitted by: Sudha
Read Online S/W Quality Assurance Job Interview Questions And Answers
Top S/W Quality Assurance Questions
☺ | Suppose IF YOU HAVE BEEN GIVEN THE RESPONSIBILITY TO ELICIT REQUIREMENTS FROM A CUSTOMER WHO TELL YOU HE IS TOO BUSY TO MEET WITH YOU. WHAT SHOULD YOU DO? |
☺ | Explain Which of the following tools would you use to detect a memory leak? a. State analysis b. Coverage analysis c. Dynamic analysis d. Memory analysis |
Top Certifications Categories
☺ | CCIE Certification Interview Questions. |
☺ | CCSP Certification Interview Questions. |
☺ | AFMC Interview Questions. |
☺ | Sun Certification Interview Questions. |
☺ | GATE Exam Interview Questions. |