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

If there are 4 buttons New,Edit,Delete & Refresh for Item screen .May I have to write 4 different test cses for each button OR I can perform all operations[Create,Edit,Delete & refresh item] in a single tes case? Please reply as early as possible. It's very urgent to me

10 Answers  


how to write a test procedure & test log for login system

0 Answers  


How many test cases u will write for Adhoc testing? How many test cases u will write for Alpha testing? How many test cases u will write for Beta testing? How many test cases u will write for Release candidate testing? How many test cases u will write for Product release testing? How many test cases u will write for Functional testing? How many test cases u will write for Non-Functional testing? How many test cases u will write for Integration testing? How many test cases u will write for System testing? How many test cases u will write for Component testing? How many test cases u will write for Release testing? How many test cases u will write for Load testing? How many test cases u will write for Stress testing? How many test cases u will write for Black box testing? How many test cases u will write for White Box testing? How many test cases u will write for Performance testing? How many test cases u will write for Automation testing? How many test cases u will write for Compatibility testing? How many test cases u will write for Regression testing? How many test cases u will write for Endurance testing? How many test cases u will write for System Integration testing? How many test cases u will write for Boundary value testing? How many test cases u will write for Usability testing? How many test cases u will write for Walk through testing? How many test cases u will write for Sanity testing? How many test cases u will write for Smoke testing? How many test cases u will write for Installation testing? How many test cases u will write for Soak testing? How many test cases u will write for Volume testing? How many test cases u will write for Security testing? Write test cases for Multi path testing? How many test cases u will write for Multi path testing? Write test cases for Dynamic Capacity Expansion (DCE)? Write test cases for Dynamic Volume Expansion (DVE)? Write test cases for Dynamic Raid Expansion (DRM)? Write test cases for Drive failure? Write test cases for Controller Failover? Write test cases for Cable pull? Write test cases for RAID Controller?

0 Answers   Wipro,


Do you write test plan and test case?

0 Answers   FF Solutions,


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 any1 tell me how to do and Integration test design and test cases for Order Inventory system for use cases. ALso how is that going to differ from System Testing. The system is similar to amazon.com online ordering system and you can place order by calling customer call center.

0 Answers  


how to write test cases for online restaurant table booking system?

0 Answers  


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

3 Answers   Semantic Space,


test cases for calculator ,this should accept integer form +99 to -99(perform addition operator).need to raise defects

4 Answers   Wipro,


Can some body help to write possible test cases for a credit card at POS (point of sale)

0 Answers  


How to write test case for this scenario. The system shall auto populate the Email Address on the contact screen with the Email Address of the user profile 

0 Answers  


can one defect be mapped to more than one test script in manual testing

0 Answers  




Categories