Software Engineering
Comprehensive exam revision notes for BCA-423E Unit 1 (Introduction to Software Engineering & Life Cycle Models). Includes Section A (2M), Section B (5M), and Section C (15M) questions, answers, and diagrams.
Software Engineering
Introduction to Software Engineering & Life Cycle Models
Core Definitions & Key Concepts
What is the formal IEEE definition of Software Engineering
IEEE Standard 610.12 defines Software Engineering as: 'The application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software; that is, the application of engineering to software.'
What was the 'Software Crisis' that emerged in the late 1960s
The Software Crisis referred to widespread project failures characterized by massive budget overruns, missed deadlines, unreliable bug-ridden software, and exorbitant post-delivery maintenance costs.
How does software differ fundamentally from manufactured physical hardware
- Software is engineered and developed logically; it is not manufactured on an assembly line.
- Software does not wear out mechanically over time (does not follow the hardware 'bathtub curve').
- Software is predominantly custom-built rather than assembled from standard hardware components.
What is the primary drawback of the Classical Waterfall Model
It is strictly linear and sequential, assuming all requirements are frozen at inception. It provides no feedback loops and delays testing until the very end, making mid-course requirement changes catastrophic.
When is the Prototyping Model most suitable for software projects
When the customer has vague, uncertain, or incompletely understood requirements. A mock-up working model allows users to visualize and refine requirements interactively.
Name the four quadrants in each cycle of Barry Boehm's Spiral Model
- Determine objectives, alternatives, and constraints.
- Evaluate alternatives, identify and resolve risks.
- Develop and verify next-level product.
- Review and plan next phase.
List the five maturity levels of the SEI CMM/CMMI framework
- Level 1 (Initial): Ad-hoc, chaotic processes.
- Level 2 (Repeatable / Managed): Basic project management policies.
- Level 3 (Defined): Standardized, documented organization-wide engineering processes.
- Level 4 (Quantitatively Managed): Quantitative quality metrics and statistical process control.
- Level 5 (Optimizing): Continuous process improvement through innovative technology.
What is Function Point Analysis (FPA) and who created it
Developed by Allan Albrecht in 1979 at IBM, FPA measures the functional size of software delivered to users based on business functionality, completely independent of programming language.
Conceptual & Architectural Analysis
Compare Classical Waterfall, Prototyping, Spiral, and Agile Models in a Detailed Matrix
| Dimension | Classical Waterfall | Prototyping Model | Spiral Model | Agile (Scrum) |
|---|---|---|---|---|
| Requirement Clarity | Must be 100% frozen upfront | Vague / Evolving | Medium to complex with high risk | Highly dynamic / Changing |
| Risk Management | Very Poor (Late testing) | Moderate (Visual feedback) | Exceptional (Systematic risk analysis per loop) | High (Continuous delivery) |
| Customer Involvement | At start and delivery only | High during prototype phase | High at milestone reviews | Continuous in every sprint |
| Delivery Timeline | One Big Bang release at end | Intermediate prototypes | Incremental versions per cycle | Working software every 2–4 weeks |
| Ideal Project Type | Well-understood, stable systems | New domain with unclear UI | Large, complex, mission-critical systems | Dynamic commercial web/mobile apps |
The Agile Scrum Framework: Roles, Ceremonies (Events), and Artifacts
1. Scrum Core Roles
- Product Owner: Defines product vision, manages Product Backlog, maximizes ROI.
- Scrum Master: Servant-leader who coaches the team, facilitates events, and removes roadblocks.
- Development Team: Cross-functional, self-organizing professionals (developers, testers, designers).
2. Scrum Ceremonies
- Sprint Planning: Selects committed backlog items for upcoming sprint.
- Daily Standup: 15-minute daily sync: What did I do yesterday? What will I do today? Any blockers?
- Sprint Review: Demo of working increment to stakeholders.
- Sprint Retrospective: Team reflection: What went well? What can be improved?
3. Scrum Artifacts
- Product Backlog: Prioritized list of all desired product features.
- Sprint Backlog: Subset of tasks committed for the current sprint.
- Burndown Chart: Visual graph of remaining work vs time.
ISO 9126 Software Quality Characteristics with Sub-Characteristics
ISO/IEC 9126 Quality Model
- Functionality: Suitability, Accuracy, Interoperability, Security, Compliance.
- Reliability: Maturity, Fault tolerance, Recoverability.
- Usability: Understandability, Learnability, Operability, Attractiveness.
- Efficiency: Time behavior (response latency), Resource utilization (CPU/RAM).
- Maintainability: Analyzability, Changeability, Stability, Testability.
- Portability: Adaptability, Installability, Co-existence, Replaceability.
Function Point Analysis (FPA): The 5 Information Domains and Formula
1. Five Function Point Components (Unadjusted FP - UFP)
- External Inputs (EI): Input screens, forms updating internal data.
- External Outputs (EO): Reports, calculations, invoices sent to users.
- External Inquiries (EQ): Simple read-only queries with interactive output.
- Internal Logical Files (ILF): Major user data tables maintained inside application.
- External Interface Files (EIF): Data tables maintained by external systems referenced for reading.
2. Function Point Formula:
$FP = UFP × ≤ft[ 0.65 + 0.01 × \sum_{i=1}^{14} C_i \right] Where \sum C_i$ is the sum of 14 General System Characteristics (GSCs) scored 0 to 5.
In-Depth Analysis & Implementation
The Architecture and Four Quadrants of Barry Boehm's Spiral Model with a Diagram
Barry Boehm's Risk-Driven Spiral Model
Quadrant 1: Determine Objectives, Constraints
|
v
+---------------------------------------------------+
| Accumulating Cost, Angular Progress = Iteration |
+---------------------------------------------------+
^ |
Quadrant 4: | v Quadrant 2:
Plan Next | Risk Analysis,
Phases | Prototyping
(Customer | |
Review) +---------------------------------------------+
^
|
Quadrant 3: Develop, Test, Verify CodeDetailed Quadrant Breakdown:
- Quadrant 1 (Top Left - Objective Setting):
- Identifies goals for the iteration, alternative technical approaches, and managerial constraints (budget, schedule).
- Quadrant 2 (Top Right - Risk Assessment & Resolution):
- Identifies technical, managerial, and operational risks.
- Develops prototypes, simulations, or benchmarks to eliminate risk uncertainty.
- Quadrant 3 (Bottom Right - Engineering Development & Verification):
- Selects appropriate development model (Waterfall, Prototyping) for the cycle.
- Executes design, coding, unit testing, and integration testing of the release.
- Quadrant 4 (Bottom Left - Review & Planning):
- Customer reviews deliverables; team plans subsequent spiral iteration or deployment.
The 5 Maturity Levels of SEI CMM/CMMI and Their Key Process Areas (KPAs)
SEI Capability Maturity Model (CMM)
Level 5: OPTIMIZING ---> Defect Prevention, Technology Change Management
Level 4: MANAGED ---> Quantitative Process Management, Software Quality Management
Level 3: DEFINED ---> Peer Reviews, Intergroup Coordination, Training Program
Level 2: REPEATABLE ---> Requirements Management, Project Planning, SCM, SQA
Level 1: INITIAL ---> Ad-hoc, chaotic heroicsLevel Details & KPAs:
- Level 1 (Initial): Chaotic, unmanaged; success depends on brilliant individuals. If key developers leave, projects collapse.
- Level 2 (Repeatable): Basic project management tracking cost, schedule, and functionality. KPAs: Requirements Management, Software Project Planning, Software Project Tracking, Software Subcontract Management, Software Quality Assurance (SQA), Software Configuration Management (SCM).
- Level 3 (Defined): Documented and standardized across entire organization. KPAs: Organization Process Focus, Organization Process Definition, Training Program, Integrated Software Management, Software Product Engineering, Peer Reviews.
- Level 4 (Managed): Quantitative, statistical measurements of process quality. KPAs: Quantitative Process Management, Software Quality Management.
- Level 5 (Optimizing): Continuous incremental improvement. KPAs: Defect Prevention, Technology Change Management, Process Change Management.
Halstead's Software Science Metrics with Mathematical Formulations and a Solved Code Example
Halstead's Software Science
Maurice Halstead formulated metrics based on counts of syntactic tokens in source code:
- \eta_1: Number of distinct unique operators
- \eta_2: Number of distinct unique operands
- N_1: Total occurrences of operators
- N_2: Total occurrences of operands
Core Halstead Formulas:
- Program Vocabulary: \eta = \eta_1 + \eta_2
- Program Length: N = N_1 + N_2
- Calculated Program Length: \hat{N} = \eta_1 \log_2 \eta_1 + \eta_2 \log_2 \eta_2
- Program Volume: V = N \log_2 \eta (bits of information)
- Program Difficulty: D = (\eta_1 / 2) × (N_2 / \eta_2)
- Mental Effort: E = D × V
Solved Example for C Code Fragment:
1int max(int a, int b) {2 int m;3 if (a > b) m = a;4 else m = b;5 return m;6}- Operators:
int,(),{},,,if,>,=,else,return,;\implies \eta_1 = 10, N_1 = 16. - Operands:
max,a,b,m\implies \eta_2 = 4, N_2 = 9. - \eta = 10 + 4 = \mathbf{14}.
- N = 16 + 9 = \mathbf{25}.
- V = 25 × \log_2(14) = 25 × 3.807 = \mathbf{95.18 bits}.
- D = (10 / 2) × (9 / 4) = 5 × 2.25 = \mathbf{11.25}.
- E = 11.25 × 95.18 = \mathbf{1,070.78 mental discrimination operations}.
Important Exam Points & Quick Revision
Draw Barry Boehm's Spiral Model with all 4 quadrants and memorize the 5 CMM levels with KPAs.
100% left on this page — finishing it closes the gap for Introduction to Software Engineering & Life Cycle Models.
Introduction to Software Engineering & Life Cycle Models still counts as a weak topic until you finish this note and answer its questions.
Practise this unitTest Your Understanding
Now that you've read through these notes, practice unit MCQs to identify weak points and solidify your learning before exams.