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



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

Answer / toshimathur

B

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Test Cases Interview Questions

An Excel sheet contains 2rows and 3 columns of data.I want to copy these data in to the another excell sheet. Write the possible positive and negative test cases?

0 Answers   IBM,


Apart from the normal functional test cases written, list out some out of the box test scenarios to test the 'Replace' dialog box in a Notepad

2 Answers  


Can anybody post the format of a Requirement Traceability Matrix. And how to include this RTM in the reqirement document.?

1 Answers  


In a log in page what will be test procedure, test scenario, test description & test steps?

0 Answers  


how to execute test cases manually

1 Answers  


In an online shopping application there are 3 text boxes.One of Login,Add to the shopping cart and Purchase goods.Which & How many test cases can be written for these 3 text boxes?

2 Answers  


Explain the logic testing?

0 Answers  


if we ve data 100 how we can check and create equvalnces an bva .if we ve data 1-5,6-10so on wat will we bva how we will chk

5 Answers   Nexus Technologies,


They were asking sily questions and definitions rather than practical experience related questions. More focused on Definitions.

0 Answers  


What is gray box testing?

0 Answers  


Hai can anybody give me an idea about writing automated test cases in qtp using VB scprit.please respond as quicky as possible.

2 Answers  


Writing Test Cases is Verification or Validation? Executing Test Cases is Verification or Validation?

9 Answers  


Categories