what is cyclomatic complexity? plz explain with example

Answer Posted / keerthana

example
int a,b;
a=10,b=20;
if(a<b)
{
printf("a is greater");
}
else
{
printf("b is greater");
}
draw the flow chart for this program and count number nodes
in the flowchart.
the formula is v(G)=E-N+2P
E is edge
N is number of nodes
p predicated node
for eg
V(G)=E-n+2P
4-4+2=2
the path of the program is 2 we got write answer

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 difference between Manual testing and Pega/BPM testing?

7855


What are the main key components in Web applications and Client Server applications? and their differences?

1734


write testcases for open dialogbox

1757


what is the general pattern of explanation of projects in interview, can u ans me plz.......... ex: online banking application

1839


After insert the record in front-end, how will you check the back end by manually? Please explain?

832


What is smoke test? Do you use any automation tool for smoke testing?

894


Hi,Please can any one tell me about SAP Testing concepts.

1786


can someone give me a brief idea about embedded testing.. i know both embedded system concepts and testing concepts.. i just want to know what we have to do for embedded testing

2073


any one giv test cases for wordpad using equivalence class partioning

2808


What is function points??????

1782


Explain Single View Testing ?

1201


what is agile model and spiral maodel?pls explain with an example?

2424


What is build interval period?

2083


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

1865


which test strategy your are fallowing in your company?which documents u r using in software development life cycle?

2048