CS FundamentalsVery hardGATE CS · TCS NQT Prime · Product Company SDE
A control-flow graph has 11 edges, 8 nodes and 1 connected component. Using V(G) = E − N + 2P, what is its cyclomatic complexity?
- A. 4
- B. 1
- C. 5
- D. 7
Correct answer: C. 5
V(G) = E - N + 2P = 11 - 8 + 2(1) = 5, 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 21, 21, 39, 20 story points in its last 4 sprints. The remaining backlog is 152 points. Using average velocity, how…
- A function has 2 independent input variables, each with its own valid range. Using robust BVA (standard BVA plus one invalid value just…
- A reporting class depends directly on a concrete EmailSender class to send alerts. A new requirement asks for alerts to optionally go via…
- Two components with availability 97.0% and 90.0% are connected in series (the system works only if both are up). What is the system's…
- A Type 2 (hosted) hypervisor, such as VirtualBox or VMware Workstation, differs from a Type 1 (bare-metal) hypervisor such as VMware ESXi…
- What does git commit --amend do?