what is cyclomatic complexity and what is the formula used
for it

Answers were Sorted based on User's Feedback



what is cyclomatic complexity and what is the formula used for it..

Answer / sunny

Cyclomatic complexity: Is a metric that provides a
quantitative measure of the logical complexity of a
program.It defines number of independent paths in the basis
set.

Cyclomatic comlexity V(G)=

--> Number of edges-number of nodes + 1
--> Number of predicate nodes + 1
--> Independent region + 1

Note: Predicate nodes means conditions.

thanx

Is This Answer Correct ?    20 Yes 9 No

what is cyclomatic complexity and what is the formula used for it..

Answer / ankita agrawal

1.) no. of regions of the flow graph correspond to the
cyclomatic complexity.
2.)cyclomatic complexity, V(G), for a flow graph, G, is
defined as V(G)=E-N+2
where E is the no. of flow graph edges, N is the no. of
flow graph nodes.
3.)cyclomatic compexity, V(G)=P+1
where, P is the no. of predicate nodes contained in the
flow graph G.

Is This Answer Correct ?    12 Yes 3 No

what is cyclomatic complexity and what is the formula used for it..

Answer / mfsi_priyankaa

Cyclomatic complexity is used to indicate the complexity of
a program. It directly measures the number of linearly
independent paths through a program's source code.

No. of decision + 1.
and L-N+2P
L=no. of edges
N=no. of nodes
P=no. of independent path (1)

Is This Answer Correct ?    5 Yes 0 No

what is cyclomatic complexity and what is the formula used for it..

Answer / suneel reddy

cyclomatic complexity measures the quantitative measure of
the logical complexicity
NO of conditions+1

Is This Answer Correct ?    11 Yes 7 No

what is cyclomatic complexity and what is the formula used for it..

Answer / gopaldas

Cyclomatic complexity is no of independent paths in a
program.It is calculated using the formula L-N+2P where L
is no of links,N is no of nodes and P is no of independent
paths

Shortcut for calculating CC:

No of Decisions + 1

Is This Answer Correct ?    6 Yes 5 No

what is cyclomatic complexity and what is the formula used for it..

Answer / dipti surve

cyclomatic complexity is technique of whitebox testing. its
requires internal logic. i.e.coding part
Cyclomatic comlexity V(G)=

--> Number of edges-number of nodes + 1
--> Number of predicate nodes + 1
--> Independent region + 1

Is This Answer Correct ?    7 Yes 8 No

what is cyclomatic complexity and what is the formula used for it..

Answer / vedha_sathya

cyclomatic complexity measures the quantitative measure of
the logical complexicity
NO of conditions+1

Is This Answer Correct ?    5 Yes 9 No

what is cyclomatic complexity and what is the formula used for it..

Answer / vedha_sathya

cyclomatic complexity measures the quantitative measure of
the logical complexicity
NO of conditions+1

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More Manual Testing Interview Questions

what is the criteria for selecting automation testing ?

5 Answers   Accenture,


what is the difference between test strategy and test methodology?

3 Answers   Uniken,


difference between sanity testing and smoke testing?

6 Answers   Cognizant,


What is mean by Schedule report who is the responsible for generated that one ?

0 Answers  


where do u store u'r Test cases?

5 Answers   Wipro,






Difference between HTTP and HTTPS

2 Answers   Cap Gemini,


What r the properties of Radio Button and Table Grid?How do we test Table Grid?

2 Answers   SoftSol,


what is the work flow of testing(glamorous)

2 Answers  


is software testing easy ??? Give me perfect Ans.

3 Answers   SunGard,


1) Test summary contains ? 2) Requirement Tracebility means ? 3) Test Effort contains ? 4) Test Planning Productivity ? 5) Metrics should be caluclated ? 6) Interest rate Rsik is a type ? 7) Test analysis and Design process task? 8) secured loan is a part of Liability (or) assest in a balance sheet? 9) Money Market means? 10) a ------ specifies all of the terms of a loan and the obligations borrower ? 11) what is a primary market is ? 12) Quality of Testing measure with ? 13) Company has a share with facevalue 10 rs/- and NAV of 37 after comapny has given Dividend of 35 % then How much NAV become ? ( I don't know what is NAV means, question overall Idea I am giving not 100% perfect ) the potions for these are 1) 33 2) 33.50 3) 37 4) 42 14) one compay has taken 10 million loan from a bank for a Interest rate is 10 % and base amount is 0.4% so how much they had paid monthly Emi ? they provideansews like 1) 100000 2) 114000 3) 140000 4) 104000 Remaing questions I not remember.

0 Answers   Misys,


What r the sequences that leads to automation?

0 Answers   Midas Technologies,


How to test an Scheduled event? For ex: in an investment banking application, the scheduler will create an equity anbd user has nothing to do but tester has to test if the instrument is created properly or not?

0 Answers  


Categories