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


Can anybody explain me branch/decision coverage with a
example.



Can anybody explain me branch/decision coverage with a example...

Answer / nitin

Branch Coverage reveals, if all branches were executed. (For example, an if-instruction has two branches, the then-branch and the else-branch.)
Decision Coverage reveals, if all decisions evaluated to both true and false. (For example, the decision of an if-instruction is what is between the parentheses.)

if (x > y)
print (x)
else if (x < y)
print (y)
else
print (x,y)

in the above example there are three decisions and 5 branches.
stmt 1 if two branches true or false
stmt 3 else if teo branches true or false
stmt 5 else one branch

so pass values like
x = 2,1,2
y = 1,2,2

so that all three decisions and 5 branches are covered.

Is This Answer Correct ?    14 Yes 4 No

Post New Answer

More Manual Testing Interview Questions

What ia the need of the testing? What is the purpose of the testing? what is the diff between these tw0?

2 Answers  


Please tell me difference btn Version & Reversion . Is there any difference btn them or both have same meaning.

3 Answers   Wipro,


In one company they ask if u get a job in CTs or any other concern, will u quit immediately? for that i have answered, but still i want ur answer to answer to tackle this questions in future?

3 Answers  


Explain about Usability Testing in web based applications?

1 Answers   Crea,


what is mean by test suite?

5 Answers  


Which criteria should take in account while doing CMS testing of any project?

0 Answers  


What is the Manual Testing?

6 Answers  


What are the different Testing methodologies?

7 Answers   IBM,


Identify correct statement

1 Answers  


What is the Major difference between Sanity and Smoke Testing

7 Answers  


What is meant by the bug state "Reproduce"

11 Answers   Oracle, TCS,


What is the goal of Software Configuration Management(SCM? a.)Configuration Identifier b.)Configuration Control c.)Process Management d.)All options.

2 Answers   Amdocs,


Categories