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

Answers were Sorted based on User's Feedback



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

Answer / kshama

Hi Nitin,

can you please elaborate ur answer.I am not getting it as
because i don't know how to find statement coverage and
condition coverage. and kindly explain me what all
conditions needs to be keep in mind while find statement
coverage and condition coverage.

Thanks & Regards,
Kshama

Is This Answer Correct ?    2 Yes 1 No

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

Answer / 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

More Manual Testing Interview Questions

can anbody tell me wht are microsoft 6 rules

5 Answers   Hoch Technologies,


What r the types of test methodologies?

7 Answers   JVS,


HOW DO U EXECUTE THE CASES WHEN THE TIME IS NOT SUFFICIENT TO EXECUTE ALL THE TEST CASES?

8 Answers  


What is Back End testing?

4 Answers   Virtusa,


1.What is end-to-end Testing 2.What ist the difference between WebBased Testing and Application Testing

5 Answers   College School Exams Tests, Mphasis, Tech Mahindra,


what is independent question and what is retriewing and what is problem of severity.

0 Answers  


wht is the diff bt patch, build and version?.developer will send to test weather patch or build to tester?

5 Answers  


Defect Migration "Defect Migration" means that error is early project documents lead to errors in later documents. For example, an incorrect requirement leads to an incorrect set of speacifications, which leads to design errors, which leads to coding errors, which lead to failures when we test against user expectations. a. How will you prevent Defect Migration? b. Why do you think preventing Defect Migration is important?

1 Answers   ISB,


In testing can you explain the concept of work bench?

1 Answers  


Tell me system level and integration level test case for telephone.

2 Answers   Mphasis,


Hello Everyone, I am trying to seek a job in testing. Could someone please send me few real time 'Test Plan','Test Case','Tracibility Matrix'? Thanks, Lakshmi lakshmi.laks@gmail.com

25 Answers   DELL,


Hi friends, Is there any difference in testing the web applications which are built on different technologies like .NET,PHP,J2ee etc ?if yes then how the testing differes from one to other?(for me its urgent to know the diff. btn .net and php).can anybody answer soon....!

3 Answers   Sinertel,


Categories