CS FundamentalsVery hardGATE CS · TCS NQT Prime · Product Company SDE
A control-flow graph has 22 edges, 16 nodes and 1 connected component. Using V(G) = E − N + 2P, what is its cyclomatic complexity?
- A. 8
- B. 7
- C. 10
- D. 4
Correct answer: A. 8
V(G) = E - N + 2P = 22 - 16 + 2(1) = 8, using the standard cyclomatic complexity formula.
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 Scrum team completed 37, 16, 17 story points in its last 3 sprints. The remaining backlog is 140 points. Using average velocity, how…
- Why is 'testing in production' (e.g. canary releases combined with real monitoring) increasingly used alongside, not instead of…
- Why do many Agile teams deliberately re-estimate story points for a backlog item as more is learned about it, rather than treating the…
- Exploratory testing is best characterised as:
- A UML use case diagram's main purpose is to:
- A high-level OrderService class directly instantiates and depends on a concrete MySqlDatabase class. What does the Dependency Inversion…