CS FundamentalsModerateAccenture · Tech Mahindra pattern

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

  1. A. 10~1
  2. B. 10
  3. C. 7
  4. D. 13

Correct answer: B. 10

V(G) = E − N + 2P = 28 − 20 + 2(1) = 10.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic