CS FundamentalsModerateAccenture · Tech Mahindra pattern
A control flow graph has 28 edges and 20 nodes. What is its cyclomatic complexity?
- A. 10~1
- B. 10
- C. 7
- D. 13
Correct answer: B. 10
V(G) = E − N + 2P = 28 − 20 + 2(1) = 10.
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 30 edges and 21 nodes, forming 2 disconnected components. What is its cyclomatic complexity?
- 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?