∑GateAndNet
Practice MCQs
UGC NET CS / Unit 6: Software Engineering
Edit
BEGINNER🔥 High-Yield Exam Topic 4 min read 3 views

Software Engineering: COCOMO, Function Points, Cyclomatic Complexity & Cohesion

Guaranteed 6–8 marks in UGC NET CS: Basic COCOMO coefficients, McCabe V(G) formulas, and exact Cohesion/Coupling rankings.

Cohesion & Coupling Order (Asked Almost Every UGC NET Cycle!)

Good modular design demands HIGH Cohesion and LOW Coupling:

  1. Cohesion (Best →\to Worst): Functional (Best)>Sequential>Communicational>Procedural>Temporal>Logical>Coincidental (Worst)\text{Functional (Best)} > \text{Sequential} > \text{Communicational} > \text{Procedural} > \text{Temporal} > \text{Logical} > \text{Coincidental (Worst)}
  2. Coupling (Best/Loosest →\to Worst/Tightest): Data (Best)<Stamp<Control<External<Common<Content (Worst)\text{Data (Best)} < \text{Stamp} < \text{Control} < \text{External} < \text{Common} < \text{Content (Worst)}
🚨 Exam Trap Alert

Content Coupling occurs when one module directly modifies or branches into the internal data/code of another module — it is the worst form of coupling! Functional Cohesion is the best form of cohesion.

📐 Quick Revision Formula Sheet
Basic COCOMO Effort & Development Time
E=ab(KLOC)bb Person-Months,D=cb(E)db MonthsE = a_b (\text{KLOC})^{b_b} \text{ Person-Months}, \qquad D = c_b (E)^{d_b} \text{ Months}
💡 Organic: a=2.4, b=1.05 | Semi-Detached: a=3.0, b=1.12 | Embedded: a=3.6, b=1.20
McCabe’s Cyclomatic Complexity V(G)
V(G)=E−N+2P=#(Predicate Nodes)+1=#(Bounded Regions)+1V(G) = E - N + 2P = \#(\text{Predicate Nodes}) + 1 = \#(\text{Bounded Regions}) + 1
💡 Gives upper bound on linearly independent basis paths needed for 100% branch coverage!
#UGC NET CS#Software Engineering#COCOMO#Testing

🎯 Practice PYQs on This Topic (3)

Q1.UGC NET CS Dec 2023MCQEASY
+2 Marks • No Negative

A control flow graph GG of a software module has 1414 edges, 1010 nodes, and 11 connected component. What is McCabe’s Cyclomatic Complexity V(G)V(G)?

Q2.UGC NET CS SEMCQEASY
+2 Marks • No Negative

In modular software design, which combination of Cohesion and Coupling produces the highest quality, most maintainable architecture?

Q3.UGC NET / GATE SEMCQMEDIUM
+2 Marks • No Negative

A module’s Control Flow Graph (CFG) has N=11N = 11 nodes and E=14E = 14 directed edges (single connected component). What is McCabe’s Cyclomatic Complexity V(G)V(G)?

Next Topic SDLC Agile/Spiral Models, Function Point Analysis (FPA) & Black/White-Box Testing