CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE
A control-flow graph has 17 edges, 12 nodes and 2 connected components. Using V(G) = E − N + 2P, what is its cyclomatic complexity?
- A. 9
- B. 7
- C. 13
- D. 11
Correct answer: A. 9
V(G) = 17 - 12 + 2(2) = 9; assuming P = 1 instead would wrongly give 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 system accepts a value from 18 to 78 inclusive. Using equivalence partitioning, what is the minimum number of test cases needed to cover…
- A module of 8000 lines of code has 13 defects found in testing. What is the defect density, in defects per KLOC?
- Which SDLC model completes each phase (requirements, design, coding, testing, deployment) fully before the next one starts, in a strict…
- Which Git command makes a full local copy of a remote repository, including its history?
- In Scrum, who is responsible for ordering (prioritising) the Product Backlog?
- A company uses a web-based email service where the provider runs everything from servers to the application itself. Which cloud service…