Explain the difference between decision coverage and
condition coverage ? If possible provide few examples.

Answers were Sorted based on User's Feedback



Explain the difference between decision coverage and condition coverage ? If possible provide few e..

Answer / mfsi_satyakamm

Decision coverage - It checks whether every edge of the
program is covered or not i.e. each edge of every control
structure(i.e. IF and CASE statements)are covered or not.

Condition coverage - It checks whether every conditional
statements are covered or not. It evaluates for only true
and false condition for each conditional statement not every
edge of those conditional statement.

Is This Answer Correct ?    17 Yes 5 No

Explain the difference between decision coverage and condition coverage ? If possible provide few e..

Answer / mfsi_krushnas

Decision Coverage
-----------------
1.Generally it says The test inputs to cover all
decisions(for ex:IF) will be in such a way that,those test
inputs can be able to make that decision block both true and
false.
for ex:
if(a>b)
print a;
endif
if (b>c)
print c;
else
print b;
endif
so here we should make test inputs in such a way that it
should able to make first if true and false although there
is no else condition.same for the second if block.
condition coverage
------------------
Here condition refers to the all possible conditions
existing in the program that we can traverse.
for ex:
if((a>b) && (b>c))

here inside the decision block there are conditions which we
should traverse.

Is This Answer Correct ?    12 Yes 0 No

Explain the difference between decision coverage and condition coverage ? If possible provide few e..

Answer / priyanka agrawal

100% decision coverage is 100% statement coverage.but 100%
statement coverage is not 100% decision coverage.This is
because decision contains both true and false part.So 100%
statement coverage can not cover both true as well as
false.and if decision is covered that means automatically
the statement will be covered.

Is This Answer Correct ?    10 Yes 5 No

Post New Answer

More Manual Testing Interview Questions

how to check security of any browser??give me some ex.?

3 Answers   Fiserv, TCS,


how to do manual testing on an application which is in several languages

1 Answers   Bosch,


exact difference between smoke testing, sanity testing and unit testing

2 Answers  


hi can somebody suggest standard format for web based testing? especially with numerous sublink to be tested. thanx

1 Answers  


what type of review process u r following in u'r company?

4 Answers   IBM, TCS,






how do you do qa review

2 Answers   IBM,


How can we explain about matrics..Every time iam getting this question..Have you involved in metrics??..Plz..plz Can any anybody give the sugessions..What is the best way to explain about metrics..give me your valuble answer..thanks in advance...

3 Answers  


what is an inconsistent bug? how to resolve this kind of bugs?

2 Answers  


do you write test cases for adhoc testing?

4 Answers  


What is the difference between manual testing and automation testing?

0 Answers  


Thanks for all who are helping me and Wish u all happy new Year........ Now I have a one more question plz...help me what is the I DIFFERENCE BETWEEN Performance Testing,LOAD TESTING AND STESS TESTING JUST IN ONE LINE ANSWER give me with an EXAMPLE PLZ.... If u have time then post me to my mail id... thank u very much... for ur help.and if anyone wants to talk to me also u can add my id my id is given below. penisetty@gmail.com

5 Answers   TCS,


this is a question asked by an interviewer..."why have u choose the testing field"

2 Answers  


Categories