CS FundamentalsModerateWipro · Accenture pattern
A control flow graph has 31 edges and 22 nodes. What is its cyclomatic complexity?
- A. 14
- B. 11~1
- C. 11
- D. 8
Correct answer: C. 11
V(G) = E − N + 2P = 31 − 22 + 2(1) = 11.
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 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?
- A control flow graph has 6 edges and 5 nodes. What is its cyclomatic complexity?
- A control flow graph has 29 edges and 20 nodes. What is its cyclomatic complexity?