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
what is the use of l10n testing?
What are the different test techniques used in functional testing?
Hi, i am looking job in perfomance testing using Loadrunner can any body help me a project in any domine plz(Usah) chs_29@rediffmail.com
What are the modules of quality center?
if yahoo ceo asks you to do performance testing for yahoo site, what are the inputs you ask from them?
If I want to check compability of software in a MAC OS then which steps shold I follow?
What is an error?
What are the principles of software testing?
Hi friends I am kranti completed my IT diploma in 2005 & after that complete my software testing course. Now I am working in small software form as software tester. I have 2 + year experience in manual testing. Now I wan to change company. Plz told me is there any effect that I can not have any degree although I have 2 + experience ?
Define cause effect graphing?
What is positive and negative testing?
What is the difference between white box, black box, and gray box testing?
What is difference between Build, Version and Release
Do write a separate test case for regression testing? If it is yes, explain how to write the test case?
10 scenarios for security testing using gmail applications?