2 Software Processes

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.

Software Processes: notes

Software Process

A software process is a set of related activities that leads to the production of a software system. Because there are many different kinds of software system, and because the process used depends on the type of software being developed, the customer's requirements and the skills of the people building it, there is no single universally applicable software process. Whatever process is used, however, it must include, in some form, the four fundamental activities introduced earlier: specification, development, validation and evolution. A software process model is an abstract, simplified description of a process, presented from a particular perspective, that captures the order in which those activities are carried out.

Software Process Models (Waterfall Model; Incremental Development; Integration and Configuration)

Three general process models recur across the industry.

The waterfall model treats each fundamental activity as a separate phase, carried out fully before the next begins, in strict linear order: requirements gathering and analysis, system design, implementation, integration and testing, and deployment and maintenance. During requirements gathering and analysis, every requirement the system must satisfy is captured and written up in a requirements specification document. System design studies that specification and produces a design that satisfies it. Implementation builds the designed system, usually as small units developed by individual programmers. Integration and testing combines and tests those units together as a complete system. Deployment and maintenance releases the system to the customer and then fixes and enhances it over time.

The waterfall model's strength is that it is simple to understand and implement and needs minimal resources; its requirements are fixed and explicit, each phase has a clear start and end point that makes progress easy to track, and the model's rigidity makes it easy to manage. Its weakness is that no working software exists until quite late in the life cycle; it cannot easily absorb a change in requirements once development is under way; going back to an earlier phase is difficult; and because testing happens at one late, large-scale stage, reducing risk early is difficult.

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]

A software process model is an abstract representation of a software process. It describes a process from a particular perspective and presents a simplified description of a software development process, organized as a framework of activities, actions, and tasks. Each process model represents a p...

Open this answer on its own page →

2079 · 5 marks

Explain the component based software engineering. [5]

Component Based Software Engineering (CBSE) is a procedure that focuses on the design and development of computer-based systems with the help of existing reusable software components. It is also known as the reuse-oriented model or Integration and Configuration model. Rather than developing a sys...

Open this answer on its own page →

2077 · 5 marks

Differentiate between waterfall model and spiral model. [5]

The waterfall model is a sequential approach where each fundamental activity of a process is represented as a separate phase arranged in linear order. Each phase is carried out completely before proceeding to the next. The process is strictly documented and predefined, with no backing up or repea...

Open this answer on its own page →

2077 · 5 marks

Discuss with example of reuse base software engineering. [5]

Reuse-based software engineering (also called Component-Based Software Engineering - CBSE) is a software development approach that focuses on designing and building systems by integrating existing, reusable software components rather than developing everything from scratch. It is also known as th...

Open this answer on its own page →

2076 · 10 marks

What is software process model? Discuss waterfall model with its merits and demerits.[10]

Show solved 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)

MeritExplanation
Simple and easy to understandThe sequential nature makes it easy to manage and explain.
Well-documentedEach phase is strictly documented, making future maintenance easier.
Easy to schedule and planClear milestones and deliverables at each phase allow better project management.
Works well for small projectsWhen requirements are well understood and fixed, this model is very effective.
Structured approachPhases do not overlap, reducing confusion in large teams.

Demerits of the Waterfall Model (1 mark)

DemeritExplanation
No working software until lateNo working software is produced until late during the life cycle, so the customer has to wait long.
Cannot accommodate changing requirementsThis model cannot accept changes in requirements during development.
Difficult to go backOnce a phase is completed, it becomes very tough to go back to a previous phase and make changes.
Risk reduction is difficultSince testing is done at a later stage, risk reduction strategy is difficult to prepare.
Not suitable for complex projectsProjects 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.

Open this answer on its own page →

2076 · 5 marks

What is clean room software development? Discuss the characteristics of cleanroom software development. [5]

Show solved 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

CharacteristicKey Point
Formal SpecificationMathematical, precise requirements
Incremental DevelopmentSmall, verifiable increments
Structured ProgrammingOnly formal control structures
Static VerificationNo developer testing; proof-based
Statistical TestingReliability certification
Separate TeamsDevelopment and testing are independent
Zero Defect GoalPrevention 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.

Open this answer on its own page →

Coping with Change

2080 · 5 marks

Differentiate between evolutionary and throw-away prototyping model. [5]

In evolutionary prototyping, the prototype developed initially is incrementally refined on the basis of customer feedback until it finally gets accepted. The same prototype is continuously improved through multiple iterations rather than being discarded. In throw-away prototyping, a prototype is ...

Open this answer on its own page →

2079 · 10 marks

Explain how prototyping model help in developing software? Differentiate between Evolutionary and throw-away prototype model.[10]

A software prototype is a working model of the proposed system built before the actual system is developed. It helps developers and customers to visualize, evaluate, and refine requirements before full-scale development begins. The prototyping model helps in developing software in the following w...

Open this answer on its own page →

2076 · 5 marks

What are rapid prototyping techniques? Briefly explain different rapid prototyping techniques. [5]

Rapid prototyping is a group of techniques used to quickly fabricate or develop a working model (prototype) of a software system or its components. The main goal is to quickly build a preliminary version of the system so that users and developers can evaluate it, gather feedback, and refine requi...

Open this answer on its own page →