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 ? | 5 Yes | 1 No |
Post New Answer View All Answers
what are the status have in QC(Test Management Tool). and how you report?
how mapp the defect id in quality center?
what are the risks and contingencies u had in ur project?
Explain the importance of agile testing?
Can you explain an application boundary?
What is pesticide paradox?
What is a maturity level?
I need your help, actually am facing lots of problem in interview am not able to answer in right way what ever questions asked about project. Could you please answer few questions? You must have seen the project I have mention as current project so please help on this, tell me how to explain project in details am prepare on HR module but don’t know how to explain it properly. If you can send me few documents like SRS, and few test case that will help me to get the clear picture, and want ask u what is tier1, tier2, and tier3 in project.
Q) Create Preffered customer: As a customer when i purchase more than $5000 in goods since my first purchase, I become a preffered customer so that i can receive the benefits associated with that status.
What is baseline testing?
How can you define state tanstion testing aswell decesion testing with examples.how you can differ them too??
Tell me the SRS based review,brs based review
how to write the test cases for mark as read/unread mails for gmail inbox?and what are the testings we will do?
How will u decide test data to see that evey feature is thoroughly tested
Wat type of questions ll be asked in interview for an 1-2 yrs. experinced persond and i need some database concept question in testing.