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

Hi Can any one tell wht type of questions will be asked in project manager round...urgent plz...

1583


Hi to all, im vaibhav i joined a MNC as a tester and i got a banking (HSBC) project can any one tell me as a fresher what kind of strategy i sholud use to perform better. thanx

1889


need testing projects where can i find them

1674


What is your daily process? I have 2+EXP IN MANUAL TESTING.PLEASE SUGGEST ME HOW i ANSWER

1818


What is a code walk through?

658






can you show me the test cases on registration form

1230


Can list out some disadvantages of manual testing?

676


tell wat u did in ur banking project?

1858


What are the main key components in web applications and client and server applications? And explain the differences between them?

676


if go through 1 or 2 projects clearly,then i feel comfortable to search the job,please help me

1508


What is coverage and what are the different types of coverage techniques?

656


How do you scope, organize, and execute a test project?

1766


What does 100% statement coverage mean?

1813


How can I use bugzilla in my company to track a bug and to allow the client to see the bug report online throughbugzilla. Please explain in detail. I am really need this.

2634


What is frame level testing and how do we test it?

1971