Software Engineering · Unit 2 · 5 hrs
Software Processes
Exam-focused notes for Software Processes (Software Engineering, CSC375): what the TU syllabus asks and how it has actually been tested, with 9 solved past questions from this unit.
Software Processes in short
This chapter looks at software production not as one activity but as a repeatable process: the different models organisations use to structure it, the fundamental activities every process includes, how a project copes with changing requirements, and how the process itself can be improved over time.
What this unit covers
- Software Process
- Software Process Models (Waterfall Model; Incremental Development; Integration and Configuration)
- Software Process Activities (Software Specification, Software Design and Implementation; Software Validation; Software Evolution)
- Coping with Change (Prototyping, Incremental Delivery)
- Process Improvement
Software Process Models
2081 · 10 marks
What do you understand by software process model? Explain different software process activities.[10]
2079 · 5 marks
Explain the component based software engineering. [5]
2077 · 5 marks
Differentiate between waterfall model and spiral model. [5]
2077 · 5 marks
Discuss with example of reuse base software engineering. [5]
2076 · 10 marks
What is software process model? Discuss waterfall model with its merits and demerits.[10]
Show solved answerHide answer
Software Process Model and Waterfall Model
What is a Software Process Model? (2 marks)
A software process model is an abstract representation of a software process. It describes a structured set of activities, methods, practices, and transformations that are used to develop and maintain software and its associated products (plans, documents, code, test cases, manuals, etc.).
A software process model provides a framework that defines:
- The order in which activities are carried out
- The entry and exit criteria for each activity
- The deliverables produced at each stage
Common software process models include:
- Waterfall Model
- Incremental Model
- Spiral Model
- Agile Model
Waterfall Model (6 marks)
Definition
The Waterfall Model is a sequential software development approach where each fundamental activity of the process is represented as a separate phase, arranged in linear order. Each phase must be completed fully before proceeding to the next phase. The process is strictly sequential -- no backing up or repeating of phases is allowed. This model is strictly documented and predefined, with features expected at every phase of the Software Development Life Cycle (SDLC).
Phases of the Waterfall Model
The diagram below illustrates the sequential flow:
Requirements Definition
|
v
System and Software Design
|
v
Implementation and Unit Testing
|
v
Integration and System Testing
|
v
Operation and Maintenance
1. Requirements Definition (System Requirements)
- All possible requirements of the system to be developed are captured and documented.
- Feasibility study is conducted.
- A Software Requirements Specification (SRS) document is produced.
2. System and Software Design
- The requirements gathered in the first phase are studied and system design is prepared.
- Hardware and software requirements are defined.
- Overall system architecture is designed.
3. Implementation and Unit Testing
- The design is translated into source code.
- Each unit (module) of the software is developed and tested individually to verify that it meets its specifications.
4. Integration and System Testing
- All units developed in the previous phase are integrated into a complete system.
- The integrated system is tested to ensure it meets the specified requirements.
- Errors and bugs are found and fixed.
5. Operation and Maintenance
- The software is deployed to the customer environment.
- Maintenance is carried out to correct errors discovered after deployment, improve performance, and adapt the software to a changed environment.
Merits of the Waterfall Model (1 mark)
| Merit | Explanation |
|---|---|
| Simple and easy to understand | The sequential nature makes it easy to manage and explain. |
| Well-documented | Each phase is strictly documented, making future maintenance easier. |
| Easy to schedule and plan | Clear milestones and deliverables at each phase allow better project management. |
| Works well for small projects | When requirements are well understood and fixed, this model is very effective. |
| Structured approach | Phases do not overlap, reducing confusion in large teams. |
Demerits of the Waterfall Model (1 mark)
| Demerit | Explanation |
|---|---|
| No working software until late | No working software is produced until late during the life cycle, so the customer has to wait long. |
| Cannot accommodate changing requirements | This model cannot accept changes in requirements during development. |
| Difficult to go back | Once a phase is completed, it becomes very tough to go back to a previous phase and make changes. |
| Risk reduction is difficult | Since testing is done at a later stage, risk reduction strategy is difficult to prepare. |
| Not suitable for complex projects | Projects where requirements are unclear or likely to change are not well-suited for this model. |
Summary
The Waterfall Model is the oldest and most widely used software process model. It is best suited for projects where:
- Requirements are clearly defined and stable
- The project is small and short in duration
- Technology is well understood
However, for large, complex, or requirement-changing projects, more flexible models such as the Spiral or Agile model are preferred over the Waterfall Model.
2076 · 5 marks
What is clean room software development? Discuss the characteristics of cleanroom software development. [5]
Show solved answerHide answer
Cleanroom Software Development
Definition
Cleanroom software development is a formal software engineering approach that emphasizes the prevention of defects rather than their removal after the fact. It is based on the idea of developing software correctly the first time by using mathematical (formal) methods for specification and design, combined with statistical testing to certify software reliability. The name "cleanroom" is borrowed from the semiconductor manufacturing process, where defects are prevented by working in a controlled, contamination-free environment.
Characteristics of Cleanroom Software Development
1. Formal Specification
- Software requirements and design are expressed using mathematical/formal notations.
- This ensures that the specification is precise, unambiguous, and verifiable.
- Reduces misunderstandings between developers and clients at the earliest stage.
2. Incremental Development
- Software is developed in a series of increments (small, manageable pieces).
- Each increment is specified, designed, verified, and tested before the next one begins.
- This allows early detection of problems and reduces overall project risk.
3. Structured Programming
- Only well-defined, mathematically sound control structures are used (sequence, selection, iteration).
- No ad-hoc or unstructured code is permitted.
- This makes formal verification of the code feasible and practical.
4. Static Verification (Correctness Proofs)
- Code is not executed by developers for testing purposes during development.
- Instead, correctness is verified through formal inspections and mathematical proofs.
- Teams use structured walkthroughs and reviews to confirm that the code meets its specification before any execution.
5. Statistical Testing for Reliability Certification
- Testing is performed not to find bugs, but to certify the reliability of the software.
- Test cases are generated based on a statistical usage model that reflects how real users will use the system.
- This allows a quantitative, measurable statement of software reliability (e.g., Mean Time to Failure).
6. Team Organization
- The cleanroom process uses separate teams for development and testing.
- The development team focuses on correctness verification.
- The independent testing team performs statistical testing.
- This separation ensures objectivity and reduces bias.
7. Zero Defect Goal
- The primary goal is defect prevention, not defect correction.
- By combining formal methods with rigorous inspections, the aim is to deliver software with near-zero defects.
Summary Table
| Characteristic | Key Point |
|---|---|
| Formal Specification | Mathematical, precise requirements |
| Incremental Development | Small, verifiable increments |
| Structured Programming | Only formal control structures |
| Static Verification | No developer testing; proof-based |
| Statistical Testing | Reliability certification |
| Separate Teams | Development and testing are independent |
| Zero Defect Goal | Prevention over correction |
Conclusion
Cleanroom software development is a disciplined, mathematically-grounded approach that combines formal methods, structured programming, and statistical testing to produce highly reliable software. Its core philosophy is that quality must be built in from the beginning, not inspected in at the end.
Coping with Change
2080 · 5 marks
Differentiate between evolutionary and throw-away prototyping model. [5]
2079 · 10 marks
Explain how prototyping model help in developing software? Differentiate between Evolutionary and throw-away prototype model.[10]
2076 · 5 marks
What are rapid prototyping techniques? Briefly explain different rapid prototyping techniques. [5]
Make Unit 2 stick
Practice CSC375 with flashcards & quizzes