CS FundamentalsModerateIBM · Deloitte pattern

A control flow graph has 11 edges and 10 nodes. What is its cyclomatic complexity?

  1. A. 6
  2. B. 3~1
  3. C. 3
  4. D. 0

Correct answer: C. 3

V(G) = E − N + 2P = 11 − 10 + 2(1) = 3.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic