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
Actually by using severity you should know which one you need to solve so what is the need of priority?
what is a horizontal and vertical matrix explain with examples
what kind of testing have u done?
What is an error?
What is build interval period?
Do you know anything about Set Top Boxes?
What is Catapult Testing in E-Learning Domain?
Does an increase in testing always improve the project?
Why Equivalence Partitioning is called equivalence or what is the significance of equivalence term in ECP?
There are some features to improve the performance of a Product. What are those factors?
How can data caching have a negative effect on load testing results?
What is concurrent user hits in load testing?
What is smoke testing and user interface testing ?
What type of metrics would you use?
wat is meant by frontend and backend testing