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

Answer / toshimathur


Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Test Cases Interview Questions

explain end to end scenario's for online Money transfer in Banking Domain?

0 Answers   Flock,

ATM application ( scenarios ): Analysis and testcases

1 Answers   TCS,

in test case we would write log and login ?what is the dif bet both of them

0 Answers  

What is mean by Equal Partitioning

4 Answers   Infosys,

what are test repository???? need for test repository/need for maintaining test cases?? advantages and disadvantages for maintaining test case??

2 Answers  

can any one give the format of writing test cases in excel sheet.

15 Answers   PCS,

plz explain vss?

7 Answers   MBT,

write a test case for employee income caculation it is awindows aplication when window is opened all options should be disabled except empno when user enter 3 charcters empname,empdes,basic should be displayed but they should be inactive,HRA,DA are active enter these two gross is displayed,enter tax then net income is displayed.all inputs must be integers and min is 1 and max is 4 charcters for all text boxes.gross =basic+HRA+DA and netincome= gross- tax

1 Answers  

Let me knw the testcases for opening an account and for billing in shopping malls..?/?/?

3 Answers   Semantic Space,

Hi there Just done with QTP training. I am looking out for a job. can any one share your experinces in real time job. I mean How the work flow goes and what other things do i have to learn for getting a job. please respond ASAP this is urgent for me. Regards Lina.

0 Answers   Sunchem,

pls send me the testcases for telecom billing system

0 Answers   Wipro,

write a test cases for advanced search

1 Answers   Satyam,