# SDLC Agile/Spiral Models, Function Point Analysis (FPA) & Black/White-Box Testing
Exam: UGC NET Computer Science & Applications (Code 87) (UGC NET CS)
Subject: Unit 6: Software Engineering
Canonical URL: https://gateandnet.com/exams/ugc-net-cs/net-software-engineering/sdlc-agile-function-points-and-testing

> Spiral risk-driven SDLC vs Scrum Agile, Albrecht Function Point UFP & CAF calculation, Boundary Value Analysis (4n + 1 vs 6n + 1), Mutation Testing, and ISO/CMMI maturity levels.

## 1. Software Process Models Quick Selector

- **Waterfall Model:** Rigid sequential phases; suitable ONLY when requirements are 100% frozen upfront.
- **Prototyping Model:** Best when customer requirements are **unclear or UI-heavy**.
- **Boehm’s Spiral Model:** **Meta-model** explicitly incorporating **Risk Analysis & Resolution** in every quadrant loop — mandatory choice for high-risk, large-scale safety-critical systems.
- **Agile / Scrum:** Iterative time-boxed **Sprints (2–4 weeks)**, Daily Standups, Product Backlog, Sprint Retrospective, working software over exhaustive documentation.

## 2. Albrecht Function Point Analysis (FPA)

Unlike LOC, **Function Points** are **programming-language independent** and computable directly from the SRS! Count 5 user-visible domains weighted by complexity (Simple / Average / Complex):
1. **External Inputs (EI)** — e.g. weights $3, 4, 6$
2. **External Outputs (EO)** — e.g. weights $4, 5, 7$
3. **External Inquiries (EQ)** — e.g. weights $3, 4, 6$
4. **Internal Logical Files (ILF)** — e.g. weights $7, 10, 15$
5. **External Interface Files (EIF)** — e.g. weights $5, 7, 10$

Multiply Unadjusted Function Points ($\text{UFP}$) by Complexity Adjustment Factor $\text{CAF} = 0.65 + 0.01 \times \text{TDI}$ (where $0 \le \text{TDI} \le 70$, so $0.65 \le \text{CAF} \le 1.35$).

## 3. Software Testing & Maintenance Distribution

- **Black-Box (Functional) Testing:** Equivalence Partitioning, Boundary Value Analysis ($4n + 1$), Cause-Effect Graphing, Decision Tables.
- **White-Box (Structural) Testing:** Statement coverage $\le$ Branch/Decision coverage $\le$ Condition/Path coverage; Basis Path Testing requires $V(G) = E - N + 2$ independent paths.
- **Alpha vs Beta Testing:** **Alpha** = at developer’s site by end-users in controlled environment; **Beta** = at customer’s own real site without developer present!
- **Software Maintenance Effort:** **Perfective maintenance** (enhancing features/performance) accounts for the **largest share (~50–55%)** of lifecycle maintenance cost, ahead of Adaptive (~25%) and Corrective (~20%)!

## Solved Practice Questions & PYQs

### [UGC NET CS SE | MCQ]
A program takes $n = 4$ independent integer inputs, each constrained to a closed range $[a_i, b_i]$. Under standard **Single-Fault Boundary Value Analysis (BVA)**, how many test cases are generated?
**Correct Answer:** B
**Solution:** Standard BVA holds $n-1$ variables at nominal value while testing $\{\min, \min^+, \max^-, \max\}$ for each variable plus $1$ all-nominal case: $4n + 1 = 4(4) + 1 = \mathbf{17}$ (Robust BVA $= 6n + 1 = 25$; Worst-case $= 5^4 = 625$).

### [UGC NET CS SE | MCQ]
Which software lifecycle process model explicitly integrates **Iterative Risk Analysis and Risk Resolution** as a dedicated quadrant in every cycle?
**Correct Answer:** B
**Solution:** **Barry Boehm’s Spiral Model** revolves through four quadrants per loop: Objective setting, **Risk Identification & Prototyping Resolution**, Development/Verification, and Next-phase Planning.

### [UGC NET CS SE | MCQ]
In Albrecht’s **Function Point Analysis**, if Unadjusted Function Points $\text{UFP} = 200$ and all $14$ General System Characteristics have an average rating of $3$, what is the final **Function Point (FP)** count?
**Correct Answer:** B
**Solution:** Total Degree of Influence $\text{TDI} = 14 \times 3 = 42$. Complexity Adjustment Factor $\text{CAF} = 0.65 + 0.01 \times 42 = 1.07$. Therefore, $\text{FP} = 200 \times 1.07 = \mathbf{214}$.
