what is cyclomatic complexity? plz explain with example
Answer Posted / devyani
Below is a simple program as an example:
IF A = 354
THEN IF B > C
THEN A = B
ELSEA= C
ENDIF
ENDIF
Print A
The control flow generated from the program would look like Figure 3.2.
The control flow shows seven nodes (shapes) and eight edges (lines), thus using the formal formula the cyclomatic complexity is 8-7 + 2 = 3. In this case there is no graph called or subroutine. Alternatively one may calculate the cyclomatic complexity using the decision points rule. Since there are two decision points, the cyclomatic complexity is 2 + 1 = 3.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Tell me the SRS based review,brs based review
Hi,friends i am going to write ICST certificate exam on augest.So can anybody post some of sample qusetions for ICST certificate exam.Really it will be useful for me
Can you explian $ pillar of Agile
What is difference between V-Model and Agile Model?
What is difference between Bug resolution meeting & Bug Review Committee? Who are participants?
What kind of testing to be done in client server application and web application? Explain
how can we give (ASSIGN) bug privitorirs and seviroty to the bug explain with exanple
write test case for gmail login page
Why performance testing is performed? What are tools of performance testing?
What is a code walk through?
What is remedy testing,expalim that and how can use that
Tell me some Adhoc testing scenarios of ebay (online auction product)?
Can anybody give whole test cases for banking module.it should include from start to end .that will help me more.to do study.it should contain account,deposite,withdraw,fd,atm modules.?please try to give me??
Hi all, can anyone tell me what is the selection procedure in Birlasoft for Manual Tester?It will be a great help.
What types of software testing are available?