CS FundamentalsModerateWipro · Accenture pattern

A control flow graph has 20 edges and 14 nodes. What is its cyclomatic complexity?

  1. A. 10
  2. B. 8~1
  3. C. 8
  4. D. 6

Correct answer: C. 8

V(G) = E − N + 2P = 20 − 14 + 2(1) = 8.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic