Software Engineering
Comprehensive exam revision notes for BCA-423E Unit 2 (Requirements Analysis, Specification (SRS) & Modeling). Includes Section A (2M), Section B (5M), and Section C (15M) questions, answers, and diagrams.
Software Engineering
Requirements Analysis, Specification (SRS) & Modeling
Core Definitions & Key Concepts
What is the primary objective of an SRS document according to IEEE 830
An SRS (Software Requirements Specification) completely describes the external behavior, functional capabilities, and performance constraints of a software system before design begins.
Name five essential characteristics of a good SRS
- Unambiguous: Only one interpretation possible.
- Complete: Covers all scenarios, inputs, responses.
- Consistent: No contradictory requirements.
- Verifiable: An objective test can prove fulfillment.
- Traceable: Origin and downstream implementation can be tracked.
Functional and Non-Functional Requirements
- Functional: Specific features, computations, and services the software must perform (e.g., 'User can generate a PDF report').
- Non-Functional: Quality attributes, performance benchmarks, and security constraints (e.g., 'Page loads in < 1.5 seconds under 5,000 concurrent sessions').
What are the four primary symbols used in Data Flow Diagrams (DFDs)
- Process (Circle / Bubble): Transforms incoming data flows into outgoing data flows.
- Data Store (Two parallel lines): Storage repository where data rests.
- External Entity (Rectangle): Outside producer or consumer of information.
- Data Flow (Directed Arrow): Pathway carrying data packets.
What is a Context Diagram (Level 0 DFD)
The highest conceptual overview of a system showing the entire application as a single process bubble interacting with surrounding external entities.
What is a Data Dictionary
A structured metadata repository defining the syntax, structure, elementary data elements, aliases, and validation constraints for every data item in the system.
In Data Dictionary notation, what do +, [ | ], { }, and ( ) mean
+: Sequence (concatenation).[ | ]: Selection (choice between alternatives).{ }: Iteration (repetition zero or more times).( ): Optional component.
<<include>> and <<extend>> in UML Use Case Diagrams
<<include>>: Mandatory sub-routine; base use case cannot complete without executing it.<<extend>>: Optional/conditional behavior triggered only when specific extension point conditions are met.
Conceptual & Architectural Analysis
DFD Balancing and Common DFD Construction Errors (Black Hole, Miracle, Gray Hole)
1. DFD Level Balancing Principle
Data flows entering and leaving a parent process bubble in a high-level DFD must exactly match the external input and output data flows in its child decomposed DFD.
2. Common DFD Errors:
- Black Hole: A process that receives input data flows but produces NO output data flows.
- Miracle: A process that produces output data flows without having ANY input data flows.
- Gray Hole: Output requires information that is not available in incoming input flows.
- Direct Data Store to Data Store link: Illegal without intervening process.
- Direct Entity to Data Store link: Illegal without intervening process.
Decision Tables: Structure, Types, and Reduction Rules
Decision Table Structure (4 Quadrants)
| Rules: Rule 1 | Rule 2 | Rule 3 | ||
|---|---|---|---|---|
| Condition Stub | Age >= 18?<br>Has Driving License? | Y<br>Y | Y<br>N | N<br>- |
| Action Stub | Issue Rental Car<br>Reject Application | X<br>- | -<br>X | -<br>X |
- Upper Left: Condition Stub (List of condition questions).
- Upper Right: Condition Entries (Y/N patterns; total 2^N for N conditions).
- Lower Left: Action Stub (Possible actions).
- Lower Right: Action Entries (X marks executed actions).
- Rule Reduction: If two rules yield identical actions and differ by only one condition, that condition is redundant and combined with a hyphen (
-).
Object-Oriented Analysis (OOA): Object, Dynamic, and Functional Models (OMT Methodology)
James Rumbaugh's OMT (Object Modeling Technique)
- Object Model (Static Structure): Identifies classes, attributes, operations, associations, inheritance, and aggregations (Class Diagrams).
- Dynamic Model (Behavior over Time): Depicts reactive states, events, state transitions, and actions (Statechart & Sequence Diagrams).
- Functional Model (Data Transformations): Captures computations, input-output relationships, and data dependencies (DFD / Activity Diagrams).
Requirements Validation Techniques (Reviews, Walkthroughs, Inspections, Prototyping)
- Requirements Reviews: Structured committee meetings of analysts and clients checking compliance.
- Walkthroughs: Informal author-led peer tour through the SRS to uncover ambiguities.
- Formal Inspections (Fagan): Rigorous formal inspection with checklists, defect logging, and metrics.
- Prototyping: Building interactive mockups to validate expected behavior against user mental models.
In-Depth Analysis & Implementation
Construct a Complete Level 0 (Context Diagram) and Level 1 DFD for an Online Library Management System
Online Library Management System DFD
1. Level 0: Context Diagram
+---------------+ Book Request / Student Credentials +-------------+
| | -----------------------------------------------------> | |
| STUDENT | | LIBRARY |
| (Entity) | <----------------------------------------------------- | MANAGEMENT |
+---------------+ Issued Book Details / Fine Receipt | SYSTEM |
| (Process 0)|
+---------------+ Book Catalog Updates / Vendor Invoices | |
| LIBRARIAN | -----------------------------------------------------> | |
| (Entity) | <----------------------------------------------------- | |
+---------------+ Inventory & Overdue Borrowers Report +-------------+2. Level 1: Decomposed DFD
[Student] ----> (1.0 Authenticate Student) <==== [Student DB]
|
Verified Student Token
v
(2.0 Search & Reserve Book) <==== [Books DB]
|
Reservation Slip
v
(3.0 Issue / Return Book) <==== [Borrow Records DB]
|
Overdue Days
v
(4.0 Compute Fine & Receipt) ----> [Student Receipt]Draft a Formal SRS Document Outline Strictly Adhering to the IEEE 830 Standard
IEEE 830 Standard SRS Architecture
11. Introduction2 1.1 Purpose of the Document3 1.2 Document Conventions & Formatting4 1.3 Intended Audience & Reading Suggestions5 1.4 Project Scope & Business Objectives6 1.5 References (Standards, Policies)7
82. Overall Description9 2.1 Product Perspective (Context diagram, System interfaces)10 2.2 Product Features & Functional Summary11 2.3 User Classes and Characteristics12 2.4 Operating Environment (Hardware, OS, Network specs)13 2.5 Design and Implementation Constraints (Statutory, Language)14 2.6 User Documentation (User manuals, Online tutorials)15 2.7 Assumptions and Dependencies16
173. External Interface Requirements18 3.1 User Interfaces (Screen layouts, Menus)19 3.2 Hardware Interfaces (Supported devices, Protocols)20 3.3 Software Interfaces (Database drivers, OS APIs)21 3.4 Communications Interfaces (HTTPS, WebSockets, Encryption)22
234. System Features (Functional Requirements)24 4.1 Feature 1: User Registration & Authentication25 4.1.1 Description and Priority26 4.1.2 Stimulus/Response Sequences27 4.1.3 Functional Requirements Specifications28 4.2 Feature 2: Financial Transaction Processing29
305. Other Non-Functional Requirements31 5.1 Performance Requirements (Latency, Throughput)32 5.2 Safety & Security Requirements (MFA, RBAC)33 5.3 Software Quality Attributes (Availability 99.9%, Portability)34
356. Other Requirements & Appendices (Data Dictionary, Analysis Models)UML Sequence Diagrams and Activity Diagrams with Concrete E-Commerce Checkout Examples
1. Sequence Diagram: E-Commerce Order Placement
User WebBrowser OrderService PaymentGateway InventoryDB
| | | | |
|--- PlaceOrder->| | | |
| |--- submitOrder() ->| | |
| | |--- checkStock() --------------------->|
| | |<-- stockAvailable --------------------|
| | | | |
| | |--- processPay() ->| |
| | |<-- paySuccess ----| |
| | | | |
| | |--- deductStock() -------------------->|
| |<-- orderConfirmed -| | |
|<-- DisplayPage-| | | |2. Activity Diagram: Order Processing Workflow
- Initial Node \to [Select Items] \to [Enter Shipping Address] \to Fork Bar:
- Branch 1: [Send Confirmation Email]
- Branch 2: [Pack Physical Warehouse Box]
- Join Bar (waits for both) \to [Dispatch Courier] \to Final Node.
Important Exam Points & Quick Revision
Practice drawing DFD Level 0 and Level 1 with balanced flows and memorize the IEEE 830 SRS table of contents.
100% left on this page — finishing it closes the gap for Requirements Analysis, Specification (SRS) & Modeling.
Requirements Analysis, Specification (SRS) & Modeling 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.