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

how can u prepare the test plan?

2345


what is diffrence between dynamic black box testing and dynamic white box testing

2066


Difference between Re-testing and Regression testing?

1334


Explain severity with example and expalin each example?

4495


what are the various techniques you will use as soon as the srs was given to you to speedup the testing?

2049


If I want to check compability of software in a MAC OS then which steps shold I follow?

2140


what is the difference between website and web based application ?

2846


What are the Important test scenarios which can be used for testing a web site?

1299


What is verification in software testing?

1230


1.For a single module how many builds are possible 2.what will be the max or min time to finish up an single module

2109


what is mean by impact analysis ,how we used to select regression TC using this?

2157


what are the tests u did in entire project? when it did in the project? (means at the release build to end of project) plz explain clearly

2185


which domain is of high demand for software testing, Right now i am working in Education domain .How about demand for Education domain and which companies are recruiting in education domain

3710


What is virtual creation tool?

2106


What is change request, how you use it?

1310