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

C

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More Test Cases Interview Questions

How to write a test cases for the following Please it is urgent Once user clicks that link Invite Friend page opens up thru which user can do 2 functions - first is to search friends detail(name, mail id) from her address book in other sites (india times, yahoo, gmail and rediff) and second to mail the invite to the selected person/s. User can send invite to multiple person at same time. Searching friends detail in other address books will work like this: - User will input name, email id, pwd etc, select from which site she want to get friends list and then click on Import. - Users address book from other sites will be imported in one shot(first time) to iDiva database. - It will be arranged in alphabetical order(complete list) and mail ids which are already used will be in different color. - User will be able to update her address book by clicking on ""Refresh"" button on the page, which will trigger the process again, and fetch new mail ids.

0 Answers  


What is Unit Testing ? What is Integration Testing ? What is acceptance testing ? What is Static testing? What is System testing? What is Load Testing? What is Smoke Testing? What is Soak Testing? What is Scalability Testing? What is Sanity Testing? What is Ramp Testing? What is Monkey Testing? What is Gray Box Testing? What is Functional Testing? What is Glass Box Testing? What is Dynamic Testing? What is Compatibility Testing? What is Concurrency Testing? What is Component Testing? What is Ad Hoc Testing? What is Agile Testing?

1 Answers  


can anyone please send me the sample testcases on how to write it into the testtemplates

3 Answers  


Write the functional test case for opening a user email account on any website(like yahoo rediff,gmail)

1 Answers   Cognizant,


What is the difference between Test Input and Test Data??

2 Answers  


Could you pls give me sites where i can test card? mail me to

0 Answers   godaddy.com,


Who will decide what the test cases you have written are correct?

4 Answers   Mind Q Systems, Satyam,


what are the different Test case Formats posted by aperson the answer is IEEE or IEE_894 wht is this actuly

4 Answers  


(questions asked in interview)hi every one can any one please answer to this questions.these questions were asked in an interview.i have another interview next week . 1.when the time schedule is tight how will you approch the testing,and the relese is nearing and we need to finish testing how can we follow in that case.do we need to exicute all the test cases or can priortise and leave some to next relase. 2. when a new feature is added to the existing application we need to add new test cases but after that do we need to change all the existing test cases and while running do we need to exicute entire application test cases or only the new feature test cases and related new feature test cases. 3.do you have any situation where you have to write and exicute the test cases same time, how will you follow.does it happens in real time. 4.example of bug which is not reproducible.like tester say that there is bug and developer say no can some example of such bugs. 5.during regression testing some times do we need to add new some additional test cases to test that bug.

2 Answers  


write down test cases for "x>=1"

6 Answers   Quexst,


What are the processes / steps invovled in Defect Prevention meeting?

1 Answers  


how to make test case for anolog voice logger?

0 Answers  




Categories