what is cyclomatic complexity and what is the formula used
for it
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
i have faced this question in one interview.kindly let me know if u know the ans . the ques is the tester have been found 20 bugs in the requirement .after dev. has been fixed 20 bugs again tester retest the bugs he found again 12 bugs dev .fixed 12 bugs keep on its going ..finally its comes zero defects now how will u checking the application stability ..
describe the difference betweeen Test scenario and Test Case
could u pls tell me, all types of funtional and non funtional testing techniques?
what is deadlock in manual testing?what is another name for this deadlock?
What is a good test? Wy do we need testing write test steps for triangle write test steps for ATM How a tester should approach a devloper about non accepted defect? What is test coverage assurance and give an example Draw and expain V model and how it is helpfull in software development
when testing will starts in a project?
Give me an example when black box testing will not able to detect a bug which white box will detect?
risk driven testing
Orthogonal Arry Testing?
Hello everybody, How many people do you think one sprint team can have in average?
where can i learn domain knowledge? how cab i gain domain knowledge? what types of Questions can be asked in domain(BFSI)? PLZ REPLY ME
wht is IEEE 829