if x<>=z
then statement
end
what is the cyclomatic complexity

Answer Posted / bob

A: 3

1st decision statement : x<>z
2nd decision statement : x=z

Please consider that the easiest way to calculate McCabe's Cyclomatic Complexity is to sum the number of binary decision statements (if, while, for, etc) and add 1 to it.

Therefore 2 statements + 1 = 3. The answer is 3.

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various types of stl containers?

738


What are the different types of stl containers?

652


Who wrote stl?

682


What is a standard template library (stl)?

650


What is a stl vector?

628






how to use C++?

2067


What is stl stand for?

742


What is stl in oop?

682


What is a list in c++ stl?

696


What two types of containers does the stl provide?

573


What does stl mean in slang?

653


What do stl stand for?

645


How is stl different from c++ standard library?

748


When did c++ add stl?

742


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

2865