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...

Find statement coverage and branch coverage:
1) Read P
Read Q
if P+Q>100
then print "Plarge"
endif

2. Disc=0
order_qty=0
Read order_qty
if order_qty>=20
Disc=0.05
if order_qty>=100 then
Disc=0.1
endif
endif

Answer Posted / nitin

for 1) - For stmnt. coverage we would require only 2 test
case to execute all the stmnts. in section 1.

for 2) For branch coverage we would require 3 test cases.
B'coz for every if condition we need to execute true and
false. So, false condition can be executed in a one go for
both IF condition and 2 test case would be required to
execute true for both IF condition.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

diff b/w desktop based testing & web application testing

2041


user id @ yahoo.com (or) yahoo.co.in (or) gmail.com.... etc

2380


how we write test cases to brs,srs,hlds,llds

3322


What is boundary value testing? Give an example.

1139


Do you know anything about Set Top Boxes?

9730


How can I use bugzilla in my company to track a bug and to allow the client to see the bug report online throughbugzilla. Please explain in detail. I am really need this.

3066


What type of testing you perform in organization while you do system testing, give clearly?

1131


HOW TO CREATE SRS REVIEW REPORT TO PL?

2399


what are risks and contigencies(solutions) of an ecommerce (online shopping and bidding project)application?we describe this in Test plan can anyone tell me abt this?

2132


Which are the standards for software test plans?

1198


What is mean by Schedule report who is the responsible for generated that one ?

2114


can anyone tell me the scenarios for online banking transaction ?

2133


hi what are the test cases for web application..i need these example..please..mail me at mina_ims@yahoo.com

1999


I have an UI issue "please fill out this field" pop up in firefox browser keeps scrolling with the page is it valid???

1977


*) Internal review defect gets detected… 1) During peer review. 2) By the own stuff member onsite/offshore. 3) During Informal review process. 4) None of these 5) All of these

2283