CS FundamentalsModerateProduct company interview · GATE level
A control flow graph has 13 edges and 11 nodes. What is its cyclomatic complexity?
- A. 4~1
- B. 4
- C. 1
- D. 7
Correct answer: B. 4
V(G) = E − N + 2P = 13 − 11 + 2(1) = 4.
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 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?
- A control flow graph has 15 edges and 13 nodes. What is its cyclomatic complexity?