Complete RGPV exam-oriented notes on measures, metrics, software quality, reliability, LOC and Function Point estimation, COCOMO, project tracking, scheduling and reverse engineering.
LOC estimation measures software size by estimating the number of source code lines required to implement the system.
Advantages
Simple to understand.
Useful with historical productivity data.
Supports effort and defect-density calculation.
Used in COCOMO.
Limitations
Language dependent.
Difficult to estimate early.
Penalizes concise code.
Does not directly measure functionality.
Generated and reused code create ambiguity.
Productivity = LOC / Person-Month
Cost per LOC = Total Project Cost / LOC
If a 20 KLOC project requires 10 person-months, productivity = 2 KLOC per person-month.
10. Function Point Estimation 14 Marks
Function Point Analysis measures software size according to user-visible functionality, independent of programming language.
Five Function Types
External Inputs (EI)
External Outputs (EO)
External Inquiries (EQ)
Internal Logical Files (ILF)
External Interface Files (EIF)
Component
Low
Average
High
External Input
3
4
6
External Output
4
5
7
External Inquiry
3
4
6
Internal Logical File
7
10
15
External Interface File
5
7
10
UFP = Sum of (Count × Weight)
VAF = 0.65 + 0.01 × ΣFi
FP = UFP × VAF
11. Function Point Numerical Example 14 Marks
Assume all components have average complexity.
Component
Count
Weight
Result
External Inputs
10
4
40
External Outputs
6
5
30
External Inquiries
4
4
16
Internal Logical Files
3
10
30
External Interface Files
2
7
14
UFP = 40 + 30 + 16 + 30 + 14 = 130
Suppose ΣFi = 35.
VAF = 0.65 + (0.01 × 35) = 1.00
Adjusted FP = 130 × 1.00 = 130 Function Points
12. COCOMO Model 14 Marks
COCOMO, or Constructive Cost Model, is an empirical software estimation model used to estimate effort, development time and staffing from software size.
Project Modes
Organic: Small and simple projects.
Semi-detached: Medium projects with mixed experience.
Embedded: Complex projects with strict constraints.
Levels
Basic COCOMO: Uses only size.
Intermediate COCOMO: Uses size and cost drivers.
Detailed COCOMO: Applies cost drivers phase by phase.
13. Basic COCOMO Equations 14 Marks
Effort (E) = a × (KLOC)b person-months
Development Time (D) = c × (E)d months
Average Staff = E / D
Mode
a
b
c
d
Organic
2.4
1.05
2.5
0.38
Semi-detached
3.0
1.12
2.5
0.35
Embedded
3.6
1.20
2.5
0.32
Intermediate COCOMO
Effort = a × (KLOC)b × EAF
14. Basic COCOMO Numerical Example 14 Marks
Estimate effort and development time for an organic project of 32 KLOC.
Effort = 2.4 × (32)1.05 ≈ 91.4 person-months
Development Time = 2.5 × (91.4)0.38 ≈ 13.9 months
Average Staff = 91.4 / 13.9 ≈ 6.6 persons
Therefore, the project requires approximately 91 person-months, 14 months and an average team of 7 persons.
15. Project Scheduling 14 Marks
Project scheduling is the process of identifying project activities, estimating their duration, defining dependencies and assigning resources over time.
Steps
Identify project activities.
Create a Work Breakdown Structure.
Estimate effort and duration.
Identify dependencies.
Assign resources.
Define milestones.
Prepare a network or Gantt chart.
Determine the critical path.
Monitor and revise the schedule.
Important Terms
Activity
Milestone
Dependency
Critical path
Slack
16. Gantt Chart 7 Marks
A Gantt chart is a bar chart that shows project activities against calendar time.
Program Evaluation and Review Technique is a network-based scheduling method that uses probabilistic activity times.
Expected Time (TE) = (O + 4M + P) / 6
Variance = ((P − O) / 6)2
CPM
Critical Path Method is a network scheduling technique that uses deterministic activity times to identify the longest path and minimum project duration.
Basis
PERT
CPM
Time
Probabilistic
Deterministic
Focus
Time uncertainty
Time-cost optimization
Suitable for
Research and new projects
Well-defined projects
Estimates
Three time estimates
Single time estimate
18. Project Tracking 14 Marks
Project tracking is the continuous comparison of actual project performance with planned cost, schedule, effort, quality and scope.
Activities
Monitor milestone completion.
Compare planned and actual effort.
Measure schedule variance.
Track cost and resource usage.
Monitor defects and quality.
Review risks and requirement changes.
Prepare status reports.
Take corrective action.
Project Plan
|
v
Collect Actual Data
|
v
Compare Plan vs Actual
|
v
Identify Variance
|
v
Corrective Action
19. Earned Value Analysis 7 Marks
PV: Planned Value
EV: Earned Value
AC: Actual Cost
Schedule Variance (SV) = EV − PV
Cost Variance (CV) = EV − AC
Schedule Performance Index (SPI) = EV / PV
Cost Performance Index (CPI) = EV / AC
SPI below 1 means the project is behind schedule. CPI below 1 means the project is over budget.
20. Reverse Engineering 14 Marks
Software reverse engineering is the process of analyzing an existing software system to identify its components, relationships, design and higher-level representation.
Existing Source Code
|
v
Code Analysis
|
v
Recover Data and Control Structure
|
v
Recover Design
|
v
Recover Architecture / Requirements
Objectives
Understand undocumented software.
Recover design and architecture.
Support maintenance.
Identify reusable components.
Assist migration and modernization.
Detect security weaknesses.
Advantages
Reduces understanding effort.
Supports legacy-system maintenance.
Improves documentation.
Enables reengineering.
Limitations
Can be expensive and time-consuming.
Recovered information may be incomplete.
Legal and licensing restrictions must be respected.
21. Important Comparisons 14 Marks
LOC vs Function Point
Basis
LOC
Function Point
Measures
Source code length
User-visible functionality
Language dependence
Language dependent
Language independent
Early estimation
Difficult
Possible from requirements
Use
Technical productivity
Business application size
Product, Process and Project Metrics
Metric Type
Focus
Examples
Product
Software characteristics
Size, complexity, defect density
Process
Development method
DRE, review effectiveness, cycle time
Project
Management performance
Cost, schedule, effort, resource use
Unit 2 Quick Revision
A measure is direct, a metric is calculated and an indicator supports decisions.
Product metrics measure software; process metrics improve activities; project metrics control management.
DRE shows the percentage of defects removed before delivery.
Reliability is the probability of failure-free operation.
MTBF equals MTTF plus MTTR.
LOC is language dependent; Function Point is language independent.
Function Point uses EI, EO, EQ, ILF and EIF.
COCOMO estimates effort and time using KLOC.
Organic, semi-detached and embedded are COCOMO modes.
PERT uses three time estimates; CPM identifies the critical path.
Reverse engineering recovers higher-level information from existing software.
Important RGPV Exam Questions
Long Answer Questions
Differentiate measures, metrics and indicators with examples.
Define software metrics and explain their types and objectives.
Explain process metrics and project metrics.
Describe the software measurement process.
Explain important metrics of software quality.
Define software reliability and explain MTTF, MTTR, MTBF and availability.
Explain different software estimation techniques.
Explain LOC estimation with advantages and limitations.
Explain Function Point Analysis with calculation steps.
Solve a numerical problem based on Function Point estimation.
Explain the COCOMO model and its project modes.
Solve a numerical problem using Basic COCOMO.
Explain project scheduling, Gantt chart, PERT and CPM.
Explain project tracking and Earned Value Analysis.
Define reverse engineering and explain its process.
Short Answer Questions
Define measure, metric and indicator.
What is defect density?
Define DRE.
What is software reliability?
Define MTTF and MTBF.
What is LOC?
Name the five Function Point components.
What is VAF?
Define COCOMO.
What are the three COCOMO modes?
What is a milestone?
Define critical path.
What is schedule variance?
Define reverse engineering.
Exam Tip: LOC, Function Point, COCOMO, reliability and PERT answers should include formulas, symbol meanings, calculation steps and final units.
Download Study Resources
Unit 2 PDF
Printable Unit 2 notes will be available soon.
Coming Soon
Numerical Practice
LOC, FP, COCOMO and PERT problems will be available soon.
Coming Soon
Important Questions
Expected Unit 2 questions will be available soon.
Coming Soon
Frequently Asked Questions
A measure is a direct value such as 50 defects, while a metric combines measures, such as 5 defects per KLOC.
DRE = E divided by E plus D, multiplied by 100.
MTBF = MTTF + MTTR.
Function Point measures user-visible functionality rather than source-code lines.
Organic, semi-detached and embedded.
PERT uses probabilistic times, whereas CPM generally uses deterministic times.
Its purpose is to understand existing software and recover design, architecture, data structures and documentation.