CS FundamentalsHardHCL · Tech Mahindra pattern
A control flow graph has 30 edges and 21 nodes, forming 2 disconnected components. What is its cyclomatic complexity?
- A. 13
- B. 11
- C. 8
- D. 16
Correct answer: A. 13
V(G) = E − N + 2P = 30 − 21 + 2(2) = 13.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A control flow graph has 7 edges and 6 nodes. What is its cyclomatic complexity?
- A control flow graph has 31 edges and 22 nodes. What is its cyclomatic complexity?
- A control flow graph has 13 edges and 11 nodes. What is its cyclomatic complexity?
- A control flow graph has 17 edges and 13 nodes, forming 2 disconnected components. What is its cyclomatic complexity?
- A control flow graph has 22 edges and 15 nodes. What is its cyclomatic complexity?
- A control flow graph has 11 edges and 10 nodes. What is its cyclomatic complexity?