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

can any one tell me wat is dependent and independent scripting?

0 Answers   Cap Gemini,


say me any problem u faced in the project after delivering to client?

2 Answers   Mantra Group,


Who will be assigning severity and priority for a bug?

5 Answers   Fidelity,


How does u write test scenarios for Television /Refrigerator?

1 Answers  


Do you know of metrics that help you estimate the size of the testing effort?

1 Answers  


I have one doubt in regression testing, Example if we have five modules such as 1,2,3,4,5. If we made change in 3 module only and also 3 module will interact with only 1 and 5 module. For this case we will conduct testing in all module (or) only 1 and 5 module?? Answer soon firends

2 Answers  


define with example high severity and low priority ? 2.low severity and high priority? 3.both are high? 4.both are low ?

2 Answers   ACS, Siemens, TCS,


where do we use checkpoints in real time?where they actually come into picture?

1 Answers  


What is d differences between sanity and smoke testing with xample?If anyone knows pls ans dis ques

5 Answers  


How do we run the database testing manually

2 Answers  


What is the exact diff between sanity and smoke test and who will do in real time?

3 Answers  


write a test case for air conditioner

6 Answers   Wipro,


Categories