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

How client/server application is complex?

1 Answers   IBM,


what is difference between load ,strss and perofrmance??? can u explain me with example???

6 Answers   Philips,


Maximum how many defects found in a single module?

2 Answers  


Who assign Bug Id & Bug Version Id?

4 Answers  


what is meant by system test case

3 Answers   Accenture,






What is the Difference between Client Server and a web Application?

9 Answers   CTS, PRDC,


how to write test case for triangle and sqaure?

3 Answers   TCS,


What is white-box Integration Testing and its differences between Black box-Integration testing?

6 Answers   Tech Mahindra,


How will you deploy a web appln?i mean how will recive that build if it is web based(asp.net)?

5 Answers  


From what phase of project, testing will starts, what tester will do at starting stage?

10 Answers   TCS,


How many process areas are present in CMMI and in what classification do they fall in?

0 Answers  


Explain about 'Interface Testing' in Web based Application?

1 Answers   Crea,


Categories