CS FundamentalsModerateTCS NQT · Infosys pattern
A control flow graph has 22 edges and 15 nodes. What is its cyclomatic complexity?
- A. 6
- B. 12
- C. 9~1
- D. 9
Correct answer: D. 9
V(G) = E − N + 2P = 22 − 15 + 2(1) = 9.
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 control flow graph has 11 edges and 10 nodes. What is its cyclomatic complexity?
- A control flow graph has 6 edges and 5 nodes. What is its cyclomatic complexity?
- A control flow graph has 29 edges and 20 nodes. What is its cyclomatic complexity?
- A control flow graph has 15 edges and 13 nodes. What is its cyclomatic complexity?
- Using basic COCOMO for a organic project (E = 2.4 × KLOC^1.05 person-months), what is the estimated effort for a 28 KLOC project?
- Using basic COCOMO for an embedded project (E = 3.6 × KLOC^1.2 person-months), what is the estimated effort for a 38 KLOC project?