CS FundamentalsVery hardGATE CS · TCS NQT Prime · Product Company SDE
A control-flow graph has 14 edges, 8 nodes and 1 connected component. Using V(G) = E − N + 2P, what is its cyclomatic complexity?
- A. 10
- B. 8
- C. 12
- D. 5
Correct answer: B. 8
V(G) = E - N + 2P = 14 - 8 + 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 PERT activity has optimistic time 2 days, most likely time 6 days and pessimistic time 9 days. What is its expected duration, Te = (O +…
- A developer deploys application code to a managed platform (e.g. a managed app-hosting service) that automatically handles the underlying…
- In a UML class diagram, a solid diamond at one end of an association line represents:
- A system's acceptance testing is performed by actual end users in their own real environment, before general release. This is:
- A control-flow graph has 19 edges, 16 nodes and 1 connected component. Using V(G) = E − N + 2P, what is its cyclomatic complexity?
- A control-flow graph has 17 edges, 12 nodes and 2 connected components. Using V(G) = E − N + 2P, what is its cyclomatic complexity?