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

2.6.3 User Interface Different Polls could be present at different channels, pages within channels, and at home page. User interface for Poll will be as described below: - Beneath poll current result(running status) to be shown in graphical form(say progressing bar chart) all the time, in same window as poll. - Link ""All Polls >>"" to take user to Polls home page which will have all the active polls with results underneath. - All the polls not older than one month will come under Active polls category. - User can take Active open polls, but cannot react to Active closed polls. Can only view results of active closed polls. - No Interactives available for polls - "Add a comment", "Rate" - Registered User can take a poll only once, after that only result is shown to user. To unregistered user it will be open. 2.6.4 Interfacing/Sourcing Details - Polls is going to be a separate module, an internal application, which editor/admin can publish. - Admin/Editor should be able to publish polls on separate channels, pages. Assign closure dates. - Admin/Editor can upload images, change look n feel, add a brand, link/url to it. - System to capture user details(screen name/name, id, email id), do loyalilty points calculation and add to user loyality points. 2.6.5 Rules and Conditions Unless assigned a closure date, by default all Polls will be open for 30 days. this is the SRS how to write the test cases for the above functionalities help me

1 Answers   GE,


write a test case for a pen and paper regarding writing.

11 Answers   Wipro,


how to Create a test plan document for Library Management System

2 Answers   TCS,


Write a Test Case to test Can of Red Bus Booking

0 Answers  


Write all test cases for any credit card.

13 Answers   SIT,


Give me 10 test cases on library management system

6 Answers  


test cases on Fan

12 Answers   TCS,


write a test cses for sending mails through microsoft- outlook xpress?

4 Answers   HCL,


Can someone help to write testcase for the scenario as early as possible.: 1. Complaint logged since one week 2. complaint info sent to supervisor with high priorit mail 3. 10 users logged into website , performance could not be degraded ( response within 5 seconds) 4. site should be user protected. 5. it should be work with IE 6 IE 7 6. complaint log should be generated more than one week

0 Answers  


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

1 Answers  


Can anybody help me in writing test cases for a scenario? need help at the earliest. will send you the requirement doc to your email id. thanks raj

0 Answers  


test cases for login window

1 Answers  




Categories