CS FundamentalsHardHCL · Tech Mahindra pattern

A control flow graph has 30 edges and 21 nodes, forming 2 disconnected components. What is its cyclomatic complexity?

  1. A. 13
  2. B. 11
  3. C. 8
  4. D. 16

Correct answer: A. 13

V(G) = E − N + 2P = 30 − 21 + 2(2) = 13.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic