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

In testing environment have you ever found any areas for improvement while you at work. (Please give some real life example).

1689


what is test scenario and test condition?

1742


What do we need to build a quality QC team ? a QC manager with all junior QCs or a QC manager with all senior QCs?

1890


hi i want manual testing interview question(3+exp)please tell me

1775


how to explain banking domain project in testing?

10629


Can you explain tailoring?

948


What is black box testing, and what are the various techniques?

989


ANY ONE HAS ATTENDED THE INTERVIEW FOR WIT INNOVATION P LTD? THEN KINDLY LET ME KNOW ABOUT THE INTERVIEW PROCESS AND QUESTIONS ASKED.

2010


What is bug, deffect, issue, error?

1092


What type of metrics would you use?

2018


What is a failure?

1018


Login screen with Username, Password input fields,remember me check box,sign in and reset button write Test Cases for GUI, Funcitonal, Negative, Usability and Security testing.

2551


1. what is a date guidelines ?

1893


What is verification in software testing?

931


What is software review?

1040