CS FundamentalsModerateCognizant · Capgemini pattern
A control flow graph has 9 edges and 7 nodes and is a single connected component. What is its cyclomatic complexity?
- A. 2
- B. 3
- C. 4
- D. 16
Correct answer: C. 4
V(G) = E − N + 2P = 9 − 7 + 2(1) = 4. Forgetting the +2P term gives 2.
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 REST client wants to change only the email field of an existing user resource without sending the whole resource. Which HTTP method fits…
- A POST request successfully creates a new resource on a REST server. Which status code is the most appropriate response?
- What is the difference between git fetch and git pull?
- The 'O' in SOLID states that a software module should be:
- Which statement correctly describes a Type 1 hypervisor?
- Why do containers usually start faster and use less memory than virtual machines?