CS FundamentalsModerateIBM · Deloitte pattern

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

  1. A. 7
  2. B. 5~1
  3. C. 5
  4. D. 3

Correct answer: C. 5

V(G) = E − N + 2P = 11 − 8 + 2(1) = 5.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic