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

Give me a sample test case for an online purchasing system?What testings u do for the same ?

8 Answers   Flipkart, NIIT, Polaris, SQTL, TCS,


What are the detailed test cases for Vacations Rental websites (Admin,Traveler,Rental owner)?

0 Answers  


I need GUI test case for home page?

0 Answers   Wipro,


can u say me how many test cases i can get for a user to login and enter password ..please specify in testcase desing template for that

7 Answers   Wipro,


Given the following code, which is true about the minimum number of test cases required for full statement and branch coverage: Read P Read Q IF P+Q > 100 THEN Print “Large” ENDIF If P > 50 THEN Print “P Large” ENDIF how to find statement and branch coverage? Explain in brief?

0 Answers   ISTQB,


how many test cases u write in day while testing yr application.and wat z ur role after u finished testing application plz do reply

9 Answers  


write a test cases for advanced search

1 Answers   Satyam,


Pls write down 3 positive test cases & 2 negative test cases for requirments at the "initiation" & "login" of an ATM machine (format:-Description,test data,methods,set up to test,actions & expected results,any proofs or attachments (optional))

1 Answers   ABC,


write a test case for yahoo compose page?

0 Answers   Cap Gemini, CMC,


Write a test scenario for a project which is developed in a VB then after wards it is converted in Java and there is no documentation available.

2 Answers  


i need sample case of Login window of USER NAM, PASSWORD It is very urgnt

12 Answers   CSC,


Write test cases for 8+4?

0 Answers  


Categories