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

what is cyclomatic complexity? plz explain with example

Answer Posted / amit

Cyclomatic Complaxity comes under white box testing.
It means best path searching. To measure logical Complaxity
of a prog.
for ex.

1-main()
2-if(a>1)
3{
------
------
}
4-else
5-{
-------
-------
}
}

Now a diagram would drawn from top as it would start from 1.
underneath it would be 2. and 2 would have two edges i.e. 3
and 4. they would futher combine to form 5.

2,3,4 & 5 would make close regeoin while outside would
become open region..

the arrows joining would be edges 2 would become predicate
node. while others are simple nodes.

it has got a formula:

v(g)=Node-edges+2
v(g)= 5-5+2
v(g)=2
v(g)= predicate node+1
v(g)=1+1
v(g)=2

So its logical correct.

Please correct me if i'm wrong.

Is This Answer Correct ?    74 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an exit criteria?

1087


when database testing comes into manual tesing

2137


Tell me the advantage and disadvantage of cookies?

1266


What is pesticide paradox?

1072


What is change request, how you use it?

1195


what is diffrence between dynamic black box testing and dynamic white box testing

1953


How to integrate Bugzilla with QTP?

2774


what kind of testing have u done?

1944


how can we give (ASSIGN) bug privitorirs and seviroty to the bug explain with exanple

2239


What is Dynamic Binding and Dynamic Loss?

1997


what are all the things we will include in " what to be tested and what not to be tested" in Test Plan

2056


Negatives test cases of gmail login page With its severity , priority and expected results columns Through test case template-oodles technologies gurgoan

2653


Can Anbody please send me Daily Work status format in which I can save my daily work activity

2491


Can you explain tpa analysis?

1026


Beyond the customary advantages of having a testing group, what are the benefits does a company receive from a well run, automated testing group?

3359