Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

For the following piece of code, how many test cases are needed to get 100% statement coverage?

Procedure X

Read (Color) // Input color from user

IF (Color == “Red”) THEN

Call Roses(Color)

ELSEIF (Color == “Blue”) THEN

Call Violets(Color)

ELSE

PRINT “User is no Shakespeare”

SaveToDatabase(Color)

End Procedure X

A. 5

B. 3

C. 1

D. 2

Answer Posted / toshimathur

B

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the component testing?

1180


write test case for button of google page?"i am feeling lucky" if button is not appear on page?

2970


How to write test case for this scenario. The system shall compare the requested name with the Service Member Name field in the database

1968


Do you know mutation testing?

1179


What is the difference between test scenarios, test cases, and test script?

1279


What are all the companies are doing manual testing till now ?

2007


What are the different check points for SIT and UAT while testing an Internet Banking application. Consider any one functionality of Internet Banking

1917


How to write test cases or test scripts for UAT testing which is done manually

5544


How to write test case for this scenario. If the Zip Code field is populated, the system shall compare  the zip code value entered to the zip code value in  the Family Individual Information Tab

9146


Please can any one tel how to write the test cases for these Requirements:- 1.The applications sends the periodic data 2.The applications sends the alarm data 3.The Application stores the Periodic data and alarm data if it is unable to send 4.the application having the configure through GPRS or SMS

2345


Explain the ramp testing?

1138


Explain the load testing?

1155


How to generate test cases for 'replace a string' method?

1376


can you tell me how to write test cases for payments, receipts, inward clearing, outward clearing, A/c statements ?

4192


Test Case for Text Editor!

3275