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
How to test a Falsh player scrollings?
what is mean by impact analysis ,how we used to select regression TC using this?
What r the sequences that leads to automation?
1.For a single module how many builds are possible 2.what will be the max or min time to finish up an single module
how do u manage scripts in winrunner when you application is changing frequently?
what is the main field of bugzilla which we fill to report bug to any developers???give some brief description??
How do you test a web application for dump and deaf??
What are the Major Functionality for a ATM machine ??
What are the cases why parameterization is necessary when load testing the Web server and the database server?
Can any body tell me in real time how cookies testing is done. And please tell me the steps.And for cookies testing test cases is needed.
hi friends, i have completed course and project on insurance domain in mindq testing institution...can any working employee please tell me ,which notes( testing subject notes,project notes)i have to prefer first.i was studied both notes and getting confussion.one of my friend got job throughly only project notes and said that project notes is enough to get job.in which way ,i have to prepare interview( which important topics first ), if you are follow any strategy to interview purpose,pls send me important topics list.
define Testing of Procedure, Triggers and Functions in data base testing ?
What is actually a rule based testing
What is the main use of preparing traceability matrix and explain the real time usage?
what are the templates for daily,weekly and monthly reports? plz reply ASAP.