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 a bug triage?

667


What makes a good test engineer?

713


What is bidirectional traceability ??? and how it is implemented

1682


Hi friends Does anyone have screen shot of POWERMHS and please can anyone post anything which will be helpful to understand POWERMHS. thanks.

2509


pl. give me the list of top jobs website to register i have 2Yrs. Experience in manual testing

1641






Have you worked in UDAP (Credit Card act 2009) project?What did you test in Billing & Payment modules?

1765


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.

1459


What are the main key components in web applications?

740


Diffrence b/w functional testing,functionality testing,system testing?

1599


Can you explain boundary value analysis?

654


Difference between smoke and sanity testing

1285


What is a defect age?

628


Which is the best book to ref. for design the test cases/scenario in manual testing,which gives detailed idea with all the strategies ?

5943


Difference between Re-testing and Regression testing?

679


Can anybody help i put the pharma and bank project in my resume, but i dont know what to tell about them, any body tell the where can i get the information about them,what i need to tell about these applications,please help me

1579