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;

A. 1

B. 2

C. 3

D. 4



If the pseudo code below were a programming language ,how many tests are required to achieve 100% st..

Answer / toshimathur

C

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Test Cases Interview Questions

write test case for optical mouse.

8 Answers   Mphasis,


What are the condition when you begin to write test case in the Test Director. Ex.data condition what are the condition can some help me please i how write test cases.

1 Answers  


how many checkpoint u have to used

3 Answers  


Pls can any 1 temme the test cases for an online banking proj. like account transaction summary, deposit module, savings module

1 Answers  


Do you write test plan and test case?

0 Answers   FF Solutions,






I have register form there is first name field.what will be the steps to execute test case???

2 Answers  


What is use case testing?

0 Answers  


How should I maintain the test cases and Test Log for different versions/builds of the application.

0 Answers  


You are Only tester for Onsite client team, this team is on holiday for two day from monday & SIT is started with plan end date is friday in this case if all server,application is crashed then as a tester what will be your approach

0 Answers   Cognizant, Tieto,


How to write test cases for "hotel reservatrion" for ms word? Thanks a lot!

0 Answers  


what is the test plan for ms-word

0 Answers  


How to write load test case for pen?

3 Answers  


Categories