CS FundamentalsHardGATE CS (PYQ pattern)
A program consists of a main routine and one procedure. Their flow graphs are drawn as two separate connected components with a total of E = 21 edges and N = 17 nodes. The cyclomatic complexity of the whole program is:
- A. 6
- B. 8
- C. 10
- D. 4
Correct answer: B. 8
With P connected components, V(G) = E − N + 2P = 21 − 17 + 4 = 8. Using the single-component formula E − N + 2 would give 6, which is the common slip.
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
- Three sequential activities lie on the critical path of a project. Their (optimistic, most likely, pessimistic) durations in days are A…
- A server unit has MTTF = 400 hours and MTTR = 100 hours. Two such units fail and are repaired independently, and the service stays up if…
- A product passes through three defect-removal activities that independently catch 60%, 70% and 50% of the defects present when they run…
- Module A passes an entire customer record (a composite structure) to module B, but B uses only the customer ID field. This is an example of:
- In function point analysis the weights (simple, average, complex) are: external inputs 3, 4, 6; external outputs 4, 5, 7; external…
- Basic COCOMO for an embedded-mode project uses effort E = 3.6 (KLOC)^1.20 person-months and development time D = 2.5 E^0.32 months. For a…