QuestionQ44

VerifiedQuality Characteristics for Technical Testing

Consider the following control-flow graph:

Question Image

The control flow represents a software component in a car navigation system. The project’s maximum permitted cyclomatic complexity is set to 5.

Which of the following statements is correct?

Explanation

Cyclomatic complexity for a connected control-flow graph is calculated as E − N + 2. With 13 edges and 11 nodes, the complexity is 4. Since 4 does not exceed the permitted maximum of 5, no defect needs to be reported.

Community Discussion

No comments yet. Be the first to start the discussion!