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

Below is a simple program as an example:
IF A = 354
THEN IF B > C
THEN A = B
ELSEA= C
ENDIF
ENDIF
Print A
The control flow generated from the program would look like Figure 3.2.
The control flow shows seven nodes (shapes) and eight edges (lines), thus using the formal formula the cyclomatic complexity is 8-7 + 2 = 3. In this case there is no graph called or subroutine. Alternatively one may calculate the cyclomatic complexity using the decision points rule. Since there are two decision points, the cyclomatic complexity is 2 + 1 = 3.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Test Design?

2144


Test cases have written according to Flow of the software working or according to Screens?

1916


What are the principles of software testing?

1095


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

2662


can anybody send the project you have tested with the clear descriptions,and recent bugs u found in that

2121


MS Paint

2061


1. what is baseline document , can you say any two ?

2426


Write the test cases for godaddy home page

1744


Test Cases For Router&Switch

2574


You want a automation tool to be used for your project. How will you convince the client for the same. Please give me specific answer.

1900


My name is Akpos from Nigeria. I have finished manual testing course. Please, can someone advise me where to go on from here?

999


Suggest some book to learn more test case???

1973


Which is the best testing model?

1005


Have u ever done testing related to a database,give examples to support u r answer.

2131


What is middle ware testing?? what are the companies using this tech?

2269