CS FundamentalsModerateWipro · Accenture pattern

A control flow graph has 31 edges and 22 nodes. What is its cyclomatic complexity?

  1. A. 14
  2. B. 11~1
  3. C. 11
  4. D. 8

Correct answer: C. 11

V(G) = E − N + 2P = 31 − 22 + 2(1) = 11.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic