CS FundamentalsModerateAccenture · Tech Mahindra pattern
A control flow graph has 15 edges and 10 nodes. What is its cyclomatic complexity?
- A. 7~1
- B. 7
- C. 5
- D. 9
Correct answer: B. 7
V(G) = E − N + 2P = 15 − 10 + 2(1) = 7.
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 9 edges and 7 nodes. What is its cyclomatic complexity?
- A control flow graph has 13 edges and 9 nodes, split across 2 separate connected components. What is its cyclomatic complexity?
- A control flow graph has 20 edges and 14 nodes. What is its cyclomatic complexity?
- A control flow graph has 23 edges and 17 nodes. What is its cyclomatic complexity?
- A control flow graph has 27 edges and 19 nodes, split across 2 separate connected components. What is its cyclomatic complexity?
- A control flow graph has 24 edges and 16 nodes, split across 2 separate connected components. What is its cyclomatic complexity?