CS FundamentalsHardProduct-company MCQ pattern

A control flow graph has 17 edges and 13 nodes, forming 2 disconnected components. What is its cyclomatic complexity?

  1. A. 8
  2. B. 6
  3. C. 3
  4. D. 11

Correct answer: A. 8

V(G) = E − N + 2P = 17 − 13 + 2(2) = 8.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic