GateMCQSCIENTIFIC PREP LAB
PlanSign Up
BEGINNERFrequently Tested 4 min read 19 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)}
Common Exam Mistake

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.

Key Formulas Summary
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}
Note: 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
Note: Gives upper bound on linearly independent basis paths needed for 100% branch coverage!
#UGC NET CS#Software Engineering#COCOMO#Testing

Practice Questions on This Chapter (5)

Q1UGC NET CS Dec 2023MCQEASY
+2M • 0 Neg

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)?

⚡ Click an option above to verify instantly
Q2UGC NET CS SEMCQEASY
+2M • 0 Neg

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

⚡ Click an option above to verify instantly
Q3UGC NET / GATE SEMCQMEDIUM
+2M • 0 Neg

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)?

⚡ Click an option above to verify instantly
Q4UGC NET CS Dec 2024MCQEASY
+2M • 0 Neg

A Control Flow Graph (CFG) of a module has 1414 edges, 1111 nodes, and 11 connected component (P=1P = 1). What is McCabe’s Cyclomatic Complexity V(G)V(G) (minimum independent basis paths)?

⚡ Click an option above to verify instantly
Q5UGC NET CS 2022MCQEASY
+2M • 0 Neg

In modular software design, which pair represents the MOST desirable (best) Cohesion and MOST desirable (loosest) Coupling?

⚡ Click an option above to verify instantly
Previous TopicAssembly Languages (8085, 8086 & RISC): Registers, Flags, T-States, Interrupts & TracesNext Topic SDLC Agile/Spiral Models, Function Point Analysis (FPA) & Black/White-Box Testing