Course Overview

This course provides a comprehensive introduction to software engineering principles and practices. Students will study software development models, requirement engineering, software design, testing, maintenance, and project management. The course bridges the gap between theoretical computing concepts and practical software development, emphasizing professional engineering practices for building high-quality, maintainable, and scalable software systems. Students will learn industry-standard methodologies and techniques through theoretical study and practical case studies, preparing them for careers in software development, project management, and quality assurance.

Learning Outcomes

Upon completion of this course, students will be able to:

  1. Explain software development models and process methodologies
  2. Perform requirement engineering, including elicitation, specification, and validation
  3. Apply software design principles, including modularity, cohesion, coupling, and patterns
  4. Evaluate software testing strategies, including black-box and white-box techniques
  5. Analyze software maintenance and re-engineering strategies
  6. Apply software project management techniques, including estimating, scheduling, and risk management
  7. Evaluate software quality using quality standards and capability maturity models
  8. Describe professional practice and ethics in software engineering

Unit 1: Introduction

Teaching Hours: 4

Definition of Software:

  • Definition: Software is a set of programs, procedures, and documentation that performs tasks on a computer system. Unlike hardware (physical components), software is intangible and can be replicated at near-zero cost. Software includes system software (operating systems, device drivers) and application software (word processors, databases, games).

  • Type of Software:

    • System Software: Manages computer hardware and provides a platform for application software. Examples: operating systems (Windows, Linux, macOS), device drivers, utility programs.
    • Application Software: Perform specific user-oriented tasks. Examples: word processors (Microsoft Word), web browsers (Chrome, Firefox), database systems (MySQL, PostgreSQL), spreadsheet software (Excel).
    • Engineering/Software Tools: Software used to develop, test, and maintain other software. Examples: IDEs (IntelliJ, Eclipse), version control (Git), debuggers, compilers.
    • Embedded Software: Software embedded in hardware devices to control their functions. Examples: firmware in microwave controllers, automotive engine control systems, IoT device firmware.
  • Characteristic of Software:

    • Intangible: Cannot be touched or seen; only its manifestations (output, behavior) are visible.
    • Developed, not manufactured: Software is designed and coded, not assembled on a production line. Each build can be customized.
    • Degradation over time: Software does not "wear out" like hardware but degrades due to changing environments, evolving requirements, and bit rot.
    • Easier to deteriorate than deteriorate: It is often easier and cheaper to build new software than to maintain existing legacy systems.
    • Non-wear-out failures: Most software failures are due to errors, not physical degradation.
  • Attributes of Good Software:

    • Operative: Provides the functions the user needs.
    • Correct: Produces correct results for all inputs.
    • ** Reliable:** Operates correctly under stated conditions for a specified period.
    • Efficient: Uses system resources (CPU, memory, storage) efficiently.
    • Usable: User interface is intuitive and easy to learn.
    • Flexible: Can be adapted to changing requirements without major redesign.
    • Maintainable: Easy to modify, debug, and enhance.
    • Portable: Can be transferred from one environment to another.
    • Interoperable: Works with other software systems and hardware.
    • Secure: Protects data and prevents unauthorized access.

Definition of Software Engineering. Software Engineering Costs:

  • Software Engineering: The systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software. It applies engineering principles to software creation, treating software development as an engineering discipline rather than craftsmanship.

    • SE Quote: "Software engineering is not just about writing code; it's about designing, managing, and maintaining complex systems that solve real-world problems." — Pressman
  • Software Engineering Costs: Software development is typically the most expensive phase of the software lifecycle.

    • Cost Components:
      • Planning and requirement analysis (10-15% of total cost)
      • Design (20-30%)
      • Coding/Implementation (30-40%)
      • Testing (15-25%)
      • Maintenance (60-80% over the lifecycle — the highest cost)
    • Why Costly: Complexity, changing requirements, error correction, evolution over decades, integration with other systems, legacy documentation loss, reusability challenges.

Key Terms

  • Software, System Software, Application Software, Engineering, Software Development Lifecycle, Requirement, Design, Implementation, Testing, Maintenance, Prototyping, CASE, Quality Attributes

Unit Summary

Software engineering applies systematic, engineering principles to the development of software. Unlike hardware, software is intangible, easy to duplicate but difficult to maintain over time. The cost of software development is high, with maintenance often exceeding 60-80% of total lifecycle costs. Good software possesses attributes like correctness, reliability, efficiency, usability, maintainability, portability, interoperability, and security. Understanding the cost structure and attributes of good software is fundamental for making informed decisions about software development approaches and lifecycle management.

Practice Questions

Q1. What is the difference between software and hardware? (Answer: Software is intangible, developed not manufactured, can be replicated at near-zero cost, and does not wear out like hardware. Hardware is physical, manufactured, limited in replication, and degrades over time.)

Q2. List four characteristics of software. (Answer: Intangible, developed not manufactured, easier to deteriorate than deteriorate, non-wear-out failures.)

Q3. What are the attributes of good software? (Answer: Operative, correct, reliable, efficient, usable, flexible, maintainable, portable, interoperable, secure.)

Q4. Why is software engineering expensive? (Answer: Software development is costly due to complexity, changing requirements, error correction over the lifecycle, and maintenance costs that can reach 60-80% of total lifecycle costs.)

Q5. What is the difference between system software and application software? (Answer: System software manages hardware and provides a platform (OS, drivers); application software performs user-oriented tasks (word processors, browsers, databases).)


Unit 2: Software Development Process Model

Teaching Hours: 8

Software Process:

  • Definition: A software process is a structured set of activities, actions, and tasks performed to develop and maintain software. It provides a framework for managing the complexity of software development. A typical software process includes communication, planning, modeling, construction, and deployment.

  • Software Process Activities:

    1. Communication: Understanding the problem, defining requirements, and establishing communication between stakeholders and developers.
    2. Planning: Estimating effort, schedule, and resources. Defining milestones, risks, and delivery plans.
    3. Modeling: Creating models and representations of the system (analysis models, design models). Includes UML diagrams, flowcharts, data flow diagrams.
    4. Construction: Writing code, testing, integrating. Includes detailed design, coding, unit testing, integration.
    5. Deployment: Delivering the software to the customer, installation, training, and feedback.
  • Software Process Models:

    • The Waterfall Model: Sequential phases: requirements → analysis → design → implementation → testing → deployment → maintenance. Each phase must be completed before the next begins.

      • Advantages: Simple, clear documentation, phases are disciplined, easy to manage and understand.
      • Disadvantages: Inflexible to changing requirements, late testing reveals costly errors, no working software until late in the lifecycle, risk accumulation.
      • When to use: Stable requirements, regulated industries, projects with well-understood requirements.
    • Evolutionary Development:

      • Rapid Prototyping: Quickly build a working prototype to validate requirements and get user feedback. Prototype is discarded or evolved into the final system.
        • Worked Example: Building a quick prototype of a login page to validate authentication requirements with stakeholders before full development.
      • Incremental Delivery: The software is built in increments, with each increment adding functionality. Early increments provide basic functionality, later increments add features.
        • Worked Example: Building an e-commerce site in increments: Catalog browsing (v1), Shopping cart (v2), Payment integration (v3), Review system (v4).
    • Spiral Development: Combines iterative development with systematic risk analysis. Four quadrants: objective setting, risk analysis, development/evaluation, planning. Each loop through the spiral addresses higher-level risks.

      • Worked Example: A safety-critical aviation software project uses the spiral model: each iteration identifies and mitigates risks (certification, safety standards, integration) before proceeding.
    • Component-Based Software Engineering (CBSE): Build software by composing reusable components. Advantage: Faster development, lower cost, higher reliability. Disadvantage: Finding suitable components, integration challenges.

      • Worked Example: A mobile app built using third-party components: map API (Google Maps), payment SDK (Stripe), authentication service (Firebase), rather than building from scratch.
    • Spiral Development: Rapid Software Development: Agile Methods:

      • Extreme Programming (XP): Emphasizes customer involvement, test-driven development (write tests before code), pair programming, frequent small releases, continuous integration.
      • Rapid Application Development (RAD): Focuses on rapid prototyping and iterative development with minimal planning. Uses component reuse and rapid construction.
      • Software Prototyping: Build prototypes early to refine requirements. Types: throwaway prototyping (prototype is discarded) and evolutionary prototyping (prototype is gradually enhanced into the final system).
      • Rational Unified Process (RUP): Iterative process with four phases: inception, elaboration, construction, transition. Defines roles, artifacts, and workflows. Heavy process, suitable for large projects.
      • Computer Aided Software Engineering (CASE): Software tools that support software development activities. CASE tools support analysis, design, coding, and testing. Advantage: Consistency, automation, documentation. Disadvantage: High cost, steep learning curve, may stifle creativity.
    • Classification of CASE tools:

      • Upper CASE: Supports early activities: analysis, design, modeling. Examples: Rational Rose, ERWin.
      • Lower CASE: Supports later activities: coding, testing, debugging. Examples: JUnit, debuggers, profilers.
      • Integrated CASE (ICE): Combines upper and lower CASE functionality. End-to-end support from requirements to deployment.
  • Classification of CASE tools: Based on functionality: upper CASE (analysis, design), lower CASE (coding, testing), integrated CASE (end-to-end).

Key Terms

  • Software Process, Waterfall Model, Evolutionary Development, Rapid Prototyping, Incremental Delivery, Spiral Model, CBSE, Agile Methods, XP, RAD, Prototyping, RUP, CASE, Upper CASE, Lower CASE, Integrated CASE

Unit Summary

Software process models provide structured frameworks for managing software development. The Waterfall model offers a linear, disciplined approach suitable for projects with stable requirements. Evolutionary development models (prototyping, incremental, spiral) provide flexibility for changing requirements and risk mitigation. Agile methods (XP, RAD) emphasize iterative development, customer collaboration, and responsiveness to change. CASE tools automate and support development activities. The choice of process model depends on project characteristics, team size, requirements stability, and organizational context.

Practice Questions

Q1. What is a software process? (Answer: A structured set of activities, actions, and tasks performed to develop and maintain software. Includes communication, planning, modeling, construction, and deployment.)

Q2. What are the advantages and disadvantages of the Waterfall Model? (Answer: Advantages: simple, clear documentation, disciplined phases. Disadvantages: inflexible to changing requirements, late testing reveals costly errors, no working software until late.)

Q3. When would you use the Waterfall Model vs. an Agile method? (Answer: Use Waterfall for stable requirements, regulated industries. Use Agile for changing requirements, need for frequent feedback, innovative projects.)

Q4. What is rapid prototyping and when is it useful? (Answer: Quickly build a working prototype to validate requirements and get user feedback. Useful when requirements are unclear or when stakeholders need to visualize the final product early.)

Q5. Describe the spiral model and its risk-driven approach. (Answer: Combines iterative development with systematic risk analysis. Four quadrants: objective setting, risk analysis, development/evaluation, planning. Each loop addresses higher-level risks before proceeding.)

Q6. What is Extreme Programming (XP) and what are its key practices? (Answer: XP is an Agile method emphasizing customer involvement, test-driven development, pair programming, frequent small releases, and continuous integration.)

Q7. Compare RAD and RUP. (Answer: RAD focuses on rapid prototyping and iterative development with minimal planning. RUP is a heavier, iterative process with four defined phases (inception, elaboration, construction, transition) and defined roles/artifacts.)

Q8. What are the differences between upper CASE and lower CASE tools? (Answer: Upper CASE supports early activities (analysis, design, modeling). Lower CASE supports later activities (coding, testing, debugging). Integrated CASE combines both.)

Q9. Describe software prototyping types. (Answer: Throwaway prototyping: prototype is discarded after requirements validation. Evolutionary prototyping: prototype is gradually enhanced into the final system.)

Q10. What is Component-Based Software Engineering and its benefits? (Answer: Building software by composing reusable components. Benefits: faster development, lower cost, higher reliability through reuse. Challenges: finding suitable components, integration complexity.)


Unit 3: Software Requirement Analysis and Specification

Teaching Hours: 10

System and Software Requirements:

  • System Requirements: What the system as a whole must do. Includes functional requirements (what the system does) and non-functional requirements (performance, security, usability, reliability, constraints).

  • Software Requirements: Constraints on the developed system. More detailed, focused on the software product itself.

  • Type of Software Requirements:

    • Functional Requirements: What the system must do. Features, functions, behaviors. Examples: "The system shall allow users to log in," "The system shall calculate the total price including tax," "The search function shall return results within 2 seconds."
    • Non-Functional Requirements: How the system must perform. Constraints and quality attributes. Examples: "Response time shall be under 2 seconds for 95% of requests," "The system shall support 1000 concurrent users," "The source code shall be maintainable," "The system shall use AES-256 encryption for data at rest."

Domain Requirements:

  • Requirements specific to the application domain (e.g., healthcare, finance, education). Domain knowledge is essential for capturing accurate requirements. Examples: HIPAA compliance for healthcare systems, GDPR for data privacy in global applications, PCI DSS for payment card systems.

User Requirements:

  • Requirements as stated by users, often informal and expressed in natural language. May be incomplete, inconsistent, or ambiguous. User requirements focus on "what" the system should do, not "how." They serve as the basis for deriving system and software requirements.

Elicitation-and Analysis of Requirements: Overview of Techniques:

  • Interviewing: Direct conversation with stakeholders to gather requirements. Advantages: Deep insights, clarifies ambiguities. Disadvantages: Interviewer bias, time-consuming, dependent on stakeholder availability.
  • Scenarios: Fictional narratives describing how users interact with the system. Advantages: Helps explore edge cases, intuitive for stakeholders. Disadvantages: May miss some scenarios, depends on author's imagination.
  • Use-Case: A description of a sequence of actions the system performs to yield an observable result of value to a particular actor. More structured than scenarios. Includes main success scenario and alternate/exception paths.
    • Worked Example: Use case: "Withdraw Cash" from an ATM. Actors: Customer, ATM. Main success scenario: Customer inserts card, enters PIN, selects withdrawal amount, receives cash, gets receipt. Alternative: Card retained, wrong PIN three times.
  • Ethnography: Observing users in their natural environment to understand work practices and requirements. Advantages: Reveals implicit requirements, uncovers pain points. Disadvantages: Time-consuming, observer effect may change behavior.
  • View Points: Different stakeholder perspectives on the system. Helps identify conflicting requirements and trade-offs.

Requirement Validation:

  • Ensuring requirements are correct, complete, consistent, and feasible. Validation techniques: reviews, walkthroughs, inspections, prototyping. Invalid requirements lead to rework and project failure.

Requirement Specification:

  • Feasibility: Assessing whether requirements can be implemented with available resources, technology, and time. Types of feasibility:

    • Technical Feasibility: Can the technology support the requirements? (e.g., AI features require adequate computing power, data availability).
    • Economic Feasibility: Can the organization afford the development and maintenance costs? Cost-benefit analysis, ROI evaluation.
    • Operational Feasibility: Will the users accept and use the system? Organizational culture, user training, change management.
    • Schedule Feasibility: Can the system be developed within the desired timeframe? Critical path analysis, resource availability.
  • Requirement Specification: Documenting requirements in a structured format. A good software requirements specification (SRS) includes:

    • Introduction: Purpose, scope, definitions, references.
    • General Description: Product perspective, product functions, user characteristics, assumptions and dependencies, constraints.
    • Specific Requirements: Functional requirements (numbered), non-functional requirements (priority, category).

    Worked Example ( simplified SRS outline):

    Software Requirements Specification
    1. Introduction
     1.1 Purpose: Inventory management system for retail store
     1.2 Scope: Track stock, sales, reorders, reports
     1.3 Definitions: SKU, reorder point, inventory turnover
     1.4 References: TU BCA syllabus, retail best practices
    
     2. General Description
      2.1 Product Perspective: Standalone desktop application
      2.2 Product Functions: Add item, update stock, generate reports, search inventory
      2.3 User Characteristics: Store manager, cashier, inventory clerk
      2.4 Assumptions: Barcode scanner connected, daily sales recorded
      2.5 Constraints: Windows platform, SQLite database, 50 concurrent users max
    
     3. Specific Requirements
      3.1 Functional Requirements
       3.1.1 FR-1: The system shall allow users to add new inventory items.
       3.1.2 FR-2: The system shall update stock quantity when items are sold.
       3.1.3 FR-3: The system shall generate daily sales reports.
      3.2 Non-Functional Requirements
       3.2.1 NFR-1: Response time shall not exceed 3 seconds for any operation.
       3.2.2 NFR-2: The system shall support at least 10 concurrent users.
    

Key Terms

  • Requirements, System Requirements, Software Requirements, Functional Requirements, Non-Functional Requirements, Domain Requirements, User Requirements, Elicitation, Analysis, Validation, Specification, SRS, Feasibility, Technical, Economic, Operational, Schedule

Unit Summary

Requirements engineering is the foundation of software quality. It involves eliciting requirements from stakeholders, analyzing them for consistency and feasibility, and specifying them in a structured format (SRS). Proper requirements analysis prevents costly rework later in the lifecycle. The SRS document serves as a contract between developers and stakeholders, specifying what the system must do (functional) and how it must perform (non-functional). Feasibility assessment (technical, economic, operational, schedule) ensures that the project is viable before significant resources are committed.

Practice Questions

Q1. What is the difference between functional and non-functional requirements? (Answer: Functional requirements specify what the system must do (features, behaviors). Non-functional requirements specify how the system must perform (performance, security, usability, constraints).)

Q2. List three non-functional requirements for a web-based e-commerce system. (Answer: Response time under 2 seconds, support 1000 concurrent users, HTTPS encryption for all data transmission.)

Q3. What are the four types of feasibility? (Answer: Technical, economic, operational, schedule.)

Q4. What is the purpose of requirements validation? (Answer: To ensure requirements are correct, complete, consistent, and feasible before development begins. Invalid requirements lead to rework, delays, and project failure.)

Q5. Describe the use-case technique for requirements elicitation. (Answer: A use case describes a sequence of actions the system performs to yield an observable result of value to a particular actor. Includes main success scenario and alternate/exception paths.)

Q6. What is ethnography and how does it help in requirements elicitation? (Answer: Ethnography involves observing users in their natural environment to understand work practices and uncover implicit requirements. Reveals pain points and requirements users may not articulate in interviews.)

Q7. Write one functional and one non-functional requirement for a flight booking system. (Answer: FR: The system shall allow users to search for flights by date and destination. NFR: The system shall process payment transactions securely using TLS 1.2 encryption.)

Q8. What is the difference between user requirements and system requirements? (Answer: User requirements are informal, stakeholder-focused statements of "what" the system should do. System requirements are more detailed, precise specifications that bridge user needs and software implementation.)

Q9. What is a use case and give an example. (Answer: A use case describes a sequence of actions the system performs to yield an observable result of value to a particular actor. Example: "Login use case": Actor: Customer. Main success: Customer enters valid credentials, system grants access. Alternative: Customer enters invalid credentials, system shows error.)

Q9. (Alternative) What is the difference between a use case and a scenario? (Answer: A use case is a structured description of system functionality from an actor's perspective, including main and alternative paths. A scenario is a fictional narrative describing a specific interaction, typically less structured.)

Q10. What is economic feasibility and how is it assessed? (Answer: Economic feasibility assesses whether the organization can afford the development and maintenance costs. Assessed through cost-benefit analysis, ROI evaluation, and payback period calculation. If benefits outweigh costs, the project is economically feasible.)


Unit 4: Software Design

Teaching Hours: 10

Design Concept:

  • Abstraction: Hiding implementation details and showing only essential features. Abstraction allows designers to manage complexity by focusing on one aspect at a time. Example: A database connection abstracts the underlying JDBC code, SQL queries, and connection management.

Architecture:

  • Architecture: The high-level structure of the software, comprising software components, their relationships, and the properties of both. Architecture decisions affect system quality attributes (performance, scalability, security). Examples: Layered architecture, client-server, microservices, MVC (Model-View-Controller).

Patterns:

  • Design Patterns: Reusable solutions to common design problems. Patterns are not finished designs but templates that can be customized. Examples:
    • Creational Patterns: Factory Method, Abstract Factory, Builder, Singleton (control object creation).
    • Structural Patterns: Adapter, Decorator, Facade, Proxy (compose objects into larger structures).
    • Behavioral Patterns: Observer, Strategy, Command, Mediator, Memento (object interaction and responsibility).

Modularity:

  • Modularity: Dividing the software into separate modules (units, packages, components) that can be developed, tested, and maintained independently. Each module encapsulates a specific functionality and exposes a well-defined interface.

    • Cohesion: Measures the degree to which elements within a module belong together. High cohesion is desirable: a module should have a single, well-focused purpose.
    • Coupling: Measures the degree of interdependence between modules. Low coupling is desirable: modules should minimize dependencies on other modules.
  • Benefits of Modularity:

    • Parallel development: multiple teams can work on different modules simultaneously.
    • Easier testing: modules can be tested in isolation.
    • Simpler maintenance: changes to one module have limited impact on others.
    • Reusability: modules can be reused in other projects.

Coupling:

  • Types of Coupling (from tightest to loosest):

    • Content Coupling: One module modifies or relies on the internal workings of another. (Worst kind)
    • Common Coupling: Multiple modules share the same global data. (Problematic)
    • Control Coupling: One module controls the flow of another by passing information on how to perform a task.
    • Stamp Coupling: Modules share a data structure and use only a part of it.
    • Data Coupling: Modules pass simple data items as parameters. (Best kind)
    • No Coupling: Modules operate independently.
  • Strategies to reduce coupling: Use interfaces, abstract classes, dependency injection, message passing, avoid global data.

Cohesion:

  • Types of Cohesion (from weakest to strongest):
    • Functional Cohesion: Module performs a single function (strongest, best).
    • Sequential Cohesion: Output of one step is input to next step.
    • Communicational Cohesion: Elements operate on the same data.
    • Procedural Cohesion: Elements perform steps of the same process.
    • Temporal Cohesion: Elements grouped because they perform tasks at the same time.
    • Logical Cohesion: Elements grouped because they are used in the same part of the program (weakest).
    • Coincidental Cohesion: Elements grouped arbitrarily (worst).

Information Hiding:

  • Information Hiding: Each module hides its internal data and implementation details behind an interface. Other modules interact only through the interface. Advantage: Changes to internal implementation don't affect other modules. Basis for modular design and low coupling.

  • Data Hiding: A specific form of information hiding focusing on data structures. Public interface vs. private data. Encapsulation in object-oriented programming.

Refinement:

  • Refinement: Gradually elaborating design elements into greater detail. Top-down design: start with high-level functions and refine into lower-level components. Stepwise refinement: progressively decompose functionality.

Architectural Design:

  • Architectural Design Decisions: Define the overall structure. Decisions about:

    • Architecture style: Layered, client-server, pipe-and-filter, model-view-controller (MVC).
    • Component identification: What components does the system need?
    • Interface specification: How do components communicate?
    • Data management: Where is data stored and how is it accessed?
    • Error handling: How are errors reported and handled?
  • Model-View-Controller (MVC): An architectural pattern separating concerns:

    • Model: Manages data and business logic. Notifies views of changes.
    • View: Renders the user interface. Observes the model.
    • Controller: Handles user input, updates model, selects view.
    • Worked Example: A web application using MVC: Model = database ORM, View = HTML templates, Controller = HTTP request handlers.

User Interface Design:

  • Human-Computer Interaction (HCI): Study of how people interact with computers. Principles: usability, accessibility, learnability.
  • User Interface Design Guidelines:
    • Consistency: Similar tasks should use similar sequences of actions.
    • Simplicity: The interface should be simple and easy to understand.
    • Feedback: The system should provide appropriate feedback for user actions.
    • Error Prevention: Design to prevent errors rather than just handle them.
    • Shortcuts: Accelerators for frequent operations.
    • User Control: Users should feel in control of the interaction.
    • Affordance: UI elements should suggest their function (e.g., button looks clickable).

Interface Evaluation:

  • Usability Testing: Observing users performing tasks with the interface. Identifies usability issues.
  • Heuristic Evaluation: Experts evaluate the interface against usability heuristics (Nielsen's 10 heuristics).
  • Cognitive Walkthrough: Simulating user tasks to evaluate ease of learning.

Key Terms

  • Software Design, Abstraction, Architecture, Design Patterns, Modularity, Coupling, Cohesion, Information Hiding, Refinement, Architectural Design, MVC, HCI, Usability, Heuristic Evaluation

Unit Summary

Software design translates requirements into a blueprint for construction. Key design concepts include abstraction, architecture, and patterns. Modularity, with high cohesion and low coupling, enables maintainable and reusable software. Information hiding protects implementation details. Architectural design decisions shape the system's quality attributes. MVC is a widely-used architectural pattern for separating concerns in UI applications. User interface design principles ensure the software is usable and accessible. Evaluation methods (heuristic, usability testing) assess design quality.

Practice Questions

Q1. What is abstraction and how does it help manage complexity? (Answer: Abstraction hides implementation details and shows only essential features, allowing designers to focus on one aspect at a time and reduce complexity.)

Q2. What is the difference between cohesion and coupling? (Answer: Cohesion measures the degree to which elements within a module belong together (high cohesion is good). Coupling measures the degree of interdependence between modules (low coupling is good).)

Q3. List the types of coupling from tightest to loosest. (Answer: Content coupling, common coupling, control coupling, stamp coupling, data coupling, no coupling.)

Q4. List the types of cohesion from strongest to weakest. (Answer: Functional cohesion, sequential cohesion, communicational cohesion, procedural cohesion, temporal cohesion, logical cohesion, coincidental cohesion.)

Q5. What is information hiding and why is it important? (Answer: Information hiding means each module hides its internal data and implementation behind an interface. Changes to internal implementation don't affect other modules. Basis for modular design and low coupling.)

Q6. Describe the MVC architectural pattern. (Answer: MVC separates concerns into Model (data and business logic), View (user interface), and Controller (handles input, updates model, selects view). Widely used in web applications.)

Q7. What are Nielsen's usability heuristics? (Answer: Ten guidelines for UI design: visibility of system status, match between system and real world, user control and freedom, consistency and standards, error prevention, recognition rather than recall, flexibility and efficiency of use, aesthetic and minimalist design, help users recognize, diagnose, and recover from errors, help and documentation.)

Q8. What are the benefits of modular software design? (Answer: Parallel development, easier testing, simpler maintenance, reusability. Modules can be developed, tested, and maintained independently.)

Q9. Describe the steps to reduce coupling between modules. (Answer: Use interfaces and abstract classes, dependency injection, message passing, avoid global data, minimize shared state, use well-defined interfaces.)

Q10. What is the difference between vertical and horizontal modularity? (Answer: Vertical modularity: modules span across layers/functions (e.g., authentication module handles login across the app). Horizontal modularity: modules at the same level handle different function areas (e.g., separate reporting, billing, user management modules at the same layer).)


Unit 5: Coding

Teaching Hours: 2

Programming Language and Development Tools:

  • Selecting Languages and Tools: Choice of programming language depends on project requirements, platform, performance needs, team expertise, and ecosystem. Popular languages: Python (rapid development, scripting), Java (enterprise, Android), C++ (systems, performance-critical), JavaScript (web, full-stack), C# (.NET ecosystem), Go (cloud, microservices), Ruby (rapid development).
  • Development Tools: Integrated Development Environments (IDEs), compilers, interpreters, debuggers, version control systems. Examples: Eclipse, IntelliJ IDEA, Visual Studio, VS Code, Git, SVN, Mercurial.

Good Programming Practices:

  • Code Readability: Write code that is easy to read and understand. Use meaningful variable names, proper indentation, consistent style, comments for non-obvious logic. Code is read far more often than it is written.
  • Modular Programming: Break the program into functions/modules that perform specific tasks. Each function should do one thing well (single responsibility principle). Facilitates testing and maintenance.
  • Documentation: Document code with comments, function descriptions, and module-level documentation. External documentation (user manuals, API docs) should be kept up to date.
  • Testing: Write unit tests for functions. Test edge cases and expected behavior. Test-driven development (write tests before code).
  • Version Control: Use version control (Git, SVN) to track changes, collaborate, and revert if needed. Commit frequently with descriptive messages.
  • Error Handling: Anticipate and handle errors gracefully. Use exception handling (try-catch-finally), return error codes, log errors for debugging. Do not ignore errors or crash abruptly.
  • Code Review: Peer review of code before merging. Catches bugs, ensures style consistency, shares knowledge. Formal (inspections) or lightweight (over-the-shoulder).

Key Terms

  • Programming Language, IDE, Compiler, Interpreter, Debugger, Version Control, Git, Good Programming Practices, Readability, Modular Programming, Documentation, Unit Testing, Test-Driven Development, Error Handling, Code Review

Unit Summary

Coding is the implementation phase of software development. Good programming practices ensure code is readable, maintainable, and correct. Key practices include meaningful naming, modular design, documentation, testing, version control, error handling, and code reviews. These practices reduce bugs, facilitate maintenance, and improve team collaboration. The choice of language and tools should match project requirements and team expertise.

Practice Questions

Q1. What factors influence the choice of programming language for a project? (Answer: Project requirements, platform, performance needs, team expertise, ecosystem and libraries available, development speed requirements.)

Q2. What is the single responsibility principle in modular programming? (Answer: Each function or module should have responsibility over only one part of the program's functionality and should encapsulate that well.)

Q3. Why is version control important in software development? (Answer: Tracks changes, enables collaboration among developers, allows reverting to previous versions, provides backup, supports branching and merging for parallel development.)

Q4. What is test-driven development (TDD)? (Answer: A practice where tests are written before the code implementation. The cycle is: write a failing test, write minimum code to pass the test, refactor the code while keeping tests passing.)

Q5. Describe the code review process. (Answer: Peer review of code before merging to main branch. Catches bugs, ensures style consistency, shares knowledge across the team. Can be formal (inspections) or lightweight (over-the-shoulder review).)

Q6. What are the benefits of using a debugger in programming? (Answer: Identifies runtime errors, allows step-by-step execution, inspects variable values at any point, helps understand program flow and locate logic errors efficiently.)


Unit 6: Software Testing and Quality Assurance

Teaching Hours: 6

Verification and Validation:

  • Verification: Are we building the product right? Checking that the software correctly implements a specific requirement. Asks "Are we building the product according to specifications?" Activities: reviews, inspections, walkthroughs, static analysis, traceability matrices. Verification is static (does not involve code execution).

  • Validation: Are we building the right product? Checking that the software meets the user's needs and requirements. Asks "Is this the product the user wants?" Activities: testing, user acceptance testing (UAT), demonstrations. Validation is dynamic (involves code execution, testing the running system).

  • Difference: Verification: "Are we building the product right?" Validation: "Are we building the right product?" Both are essential for quality software. Verification happens first (static checks), then validation (dynamic testing).

Techniques of Testing:

  • Black-Box Testing: Testing based on external behavior without knowledge of internal code structure. Test cases are derived from requirements and specifications. Also called functional testing or behavioral testing.

    • Equivalence Partitioning: Dividing input data into equivalence classes and testing one representative from each class. Reduces the number of test cases while maintaining coverage.
      • Worked Example: A password field requiring 6-12 characters. Equivalence classes: too short (<6), valid (6-12), too long (>12). Test one from each class.
    • Boundary Value Analysis: Testing at the boundaries between equivalence classes. Errors often occur at boundaries.
      • Worked Example: Same password field (6-12). Boundary values: 5, 6, 12, 13. Test these four values.
    • Cause-Effect Graphing: Graphical representation of causes (inputs) and effects (outputs). Identifies test cases that cover combinations of inputs and outputs.
    • Error Guessing: Based on experience, guessing where errors might occur. Test the suspected areas. Not systematic but effective when combined with other techniques.
  • White-Box Testing: Testing based on internal structure, code logic. White-box test cases are derived from the code. Also called structural testing or glass-box testing.

    • Statement Coverage: Execute all statements at least once. Measures what percentage of code statements are executed during testing.
      • Worked Example: Code: if (x > 0) { y = 1; } else { y = 0; }. To achieve 100% statement coverage, test with x > 0 and x ≤ 0.
    • Branch Coverage (Decision Coverage): Execute both the true and false branches of each decision at least once.
      • Worked Example: Same if (x > 0) code. Test with x > 0 (true branch) and x ≤ 0 (false branch).
    • Path Coverage: Execute all possible paths through the code at least once. More stringent than statement or branch coverage.
    • Condition Coverage: Each boolean sub-expression evaluates to true and false at least once.
  • Inspections: Formal review involving 3-5 peers, a moderator, and a recorder. Checklist-driven examination of work products (requirements, design, code). Aims to find errors, not to fix them. Defect removal efficiency metrics.

  • Levels of Testing:

    • Unit Testing: Testing individual functions or modules. Usually done by developers. Frameworks: JUnit, NUnit, pytest. Isolates the unit using mocks/stubs.
    • Integration Testing: Testing interactions between integrated units. Verifies that modules work together. Big Bang, top-down, bottom-up, sandwich (hybrid) approaches.
    • Interface Testing: Testing interfaces between systems/components. Verifies that data formats, protocols, and APIs are correctly implemented.
    • System Testing: Testing the complete, integrated system. Verifies that the system meets specified requirements. End-to-end testing.
    • Alpha Testing: Testing by end users at the developer site. Controlled environment, early feedback.
    • Beta Testing: Testing by end users at their sites. Real-world environment, wider feedback, pre-release.
  • Alpha and Beta Testing:

    • Alpha Testing: Conducted at the developer's site by end users (or QA staff acting as end users). In-controlled environment. Purpose: find bugs before release, gather initial feedback. Advantages: controlled environment, early user input. Disadvantages: may not represent real-world usage, limited number of testers.
    • Beta Testing: Conducted at end users' sites with the pre-release version. Real-world environment, wider user base. Purpose: final bug hunting, feedback for next version. Advantages: real-world testing, wider feedback, builds anticipation. Disadvantages: less control, may damage reputation if bugs are severe.
  • Regression Testing: Re-testing modified parts of the software to ensure no new errors were introduced and existing functionality still works. Essential after bug fixes, feature additions, and refactoring. Automation recommended for frequent regression testing. Regression test suite: collection of test cases that cover unchanged functionality.

  • Design of Test Cases:

  • Quality Management Activities:

    • Product Quality: Assessing the software product itself. Metrics: defect density, mean time between failures (MTBF), cyclomatic complexity, test coverage.
    • Process Quality: Assessing the development process. Metrics: productivity (lines of code per person-hour), cycle time, rework rate, customer satisfaction.
  • Product and Process Quality:

    • ISO 9126 (now ISO 25010): Software quality model with six product quality characteristics: functional suitability, reliability, efficiency, usability, maintainability, portability.
    • ISO 15504 (SPICE): Process assessment framework for evaluating software development processes. Defines maturity levels and key process areas.
  • Standards: ISO 9000: Quality management standards. Focus on process control, documentation, and continuous improvement. Certification demonstrates adherence to quality management systems.

  • Capability Maturity Model (CMM): Five maturity levels for process improvement:

    • Level 1: Initial: Processes are ad hoc, chaotic. Success depends on individual effort. High risk of project failure.
    • Level 2: Managed: Basic project management processes established. Requirements management, project tracking, software configuration management in place. Projects more predictable.
    • Level 3: Defined: Organization-wide standard processes established. All projects use an approved, tailored version of the organization's standard process set. Processes are documented, standard, and comprehensive.
    • Level 4: Quantitatively Managed: Metrics are used to track quality and productivity. Quantitative quality goals for software processes and products. Measurements provide objective data for management.
    • Level 5: Optimizing: Continuous process improvement driven by quantitative data and innovation. The organization continuously improves processes based on metrics, Pilots, and innovation.

Key Terms

  • Verification, Validation, Black-Box Testing, White-Box Testing, Equivalence Partitioning, Boundary Value Analysis, Cause-Effect Graphing, Error Guessing, Statement Coverage, Branch Coverage, Path Coverage, Condition Coverage, Inspections, Unit Testing, Integration Testing, System Testing, Alpha Testing, Beta Testing, Regression Testing, Test Case, Quality Management, ISO 9126, CMM, Defect, MTBF

Unit Summary

Software testing verifies that the software meets requirements (validation) and is built correctly (verification). Testing techniques range from black-box (requirements-based) to white-box (code-based) methods. Equivalence partitioning and boundary value analysis reduce test cases while maintaining coverage. Testing levels progress from unit to system, alpha, beta, and regression testing. Quality management standards (ISO 9000, ISO 15504/SPICE, CMM) provide frameworks for assessing and improving software quality. Effective testing combines multiple techniques and levels to ensure thorough coverage and confidence in the delivered product.

Practice Questions

Q1. What is the difference between verification and validation? (Answer: Verification: "Are we building the product right?" Checks that software implements requirements (static, no code execution). Validation: "Are we building the right product?" Checks that software meets user needs (dynamic, involves code execution and testing.))

Q2. What is equivalence partitioning and how does it reduce test cases? (Answer: Equivalence partitioning divides input data into equivalence classes and tests one representative from each class. Reduces test cases while maintaining coverage. Example: password 6-12 characters → classes: <6, 6-12, >12; test one from each.)

Q3. What is boundary value analysis and why is it effective? (Answer: Testing at the boundaries between equivalence classes. Errors often occur at boundaries. Example: password 6-12 → test 5, 6, 12, 13.)

Q4. Describe the testing levels from unit to system testing. (Answer: Unit → tests individual functions/modules. Integration → tests interactions between units. System → tests the complete integrated system against requirements.)

Q5. What is the difference between alpha and beta testing? (Answer: Alpha testing: at developer's site, controlled environment, early feedback. Beta testing: at end users' sites, real-world environment, final bug hunting for next version.)

Q6. What is regression testing and when is it performed? (Answer: Re-testing modified parts to ensure no new errors were introduced. Performed after bug fixes, feature additions, and refactoring. Automation recommended for frequent execution.)

Q7. What are the six product quality characteristics in ISO 9126? (Answer: Functional suitability, reliability, efficiency, usability, maintainability, portability.)

Q8. Describe the CMM maturity levels from 1 to 5. (Answer: Level 1: Initial (chaotic, ad hoc). Level 2: Managed (basic project management). Level 3: Defined (organization-wide standard processes). Level 4: Quantitatively Managed (metrics and quantitative goals). Level 5: Optimizing (continuous improvement driven by data).)

Q9. What is the difference between unit testing and integration testing? (Answer: Unit testing tests individual functions/modules in isolation. Integration testing tests interactions between integrated units/modules.)

Q10. What is the purpose of cause-effect graphing in test case design? (Answer: Graphical representation of causes (inputs) and effects (outputs) to identify test cases covering combinations of inputs and outputs. Helps identify relevant test cases for complex logic.)


Unit 7: Software Maintenance

Teaching Hours: 3

Evolving Nature of Software:

  • Software Evolution: Software requires ongoing modification and updating throughout its lifecycle to remain useful. Evolving requirements, changing environments, bug fixes, and feature additions are constant. Lehman's (Belady-Lehman) law of software evolution: "Software is living entities that must evolve or become progressively less useful and ultimately unusable."

  • Types of Maintenance:

    • Corrective Maintenance: Fixing defects and bugs reported by users or discovered through testing. Restores the system to its correct functioning state. Common type (~20-25% of maintenance effort).
    • Adaptive Maintenance: Modifying the system to accommodate changes in the environment (operating system upgrades, hardware changes, platform migrations). Example: Updating a Windows application for macOS compatibility.
    • Perfective Maintenance: Enhancing or modifying the system to improve performance, usability, or other attributes. Adds new features, optimizes code, improves user interface. Largest share (~40-60% of maintenance effort).
    • Preventive Maintenance: Making modifications to avoid future problems. Improving maintainability, documentation, code restructuring, design improvements. Reduces future corrective and perfective efforts.
  • Different Types of Maintenance:

    • Corrective Maintenance Example: A user reports that the "Calculate Tax" button produces incorrect results. The development team identifies a formula error, fixes the code, and releases a patch.

    • Adaptive Maintenance Example: A company upgrades from Windows 10 to Windows 11. The accounting software needs adaptive maintenance to update API calls, change window handles, and ensure compatibility with the new OS version.

    • Perfective Maintenance Example: Adding a "Export to PDF" feature to a report generator, optimizing a database query that was running slowly, or redesigning the user login screen based on usability feedback.

    • Preventive Maintenance Example: Refactoring spaghetti code into modular functions, updating documentation, adding comments, creating unit tests for existing functionality to prevent future bugs.

Software Adaptation:

  • Software Adaptation: Modifying software to run in a different environment or for a different purpose. Example: Adapting a desktop application for mobile devices, porting software from Windows to Linux, adapting for new hardware platforms.

  • Functionality Addition or Modification: Adding new features or modifying existing functionality to meet changing user needs. Change impact analysis: determining which parts of the system are affected by the change.

  • Maintenance Prediction: Estimating the future maintenance effort and cost. Boehm's model: maintenance cost = a + b × (development cost). Typically, maintenance costs exceed development costs over the lifecycle.

  • Re-Engineering: Restructuring existing software to improve maintainability without changing external behavior. Reverse engineering (understanding the existing system) followed by forward engineering (rebuilding with improved design). Used when the original design is lost or the system is too complex to maintain.

  • Configuration Management (CM): Importance of CM: Tracks and controls changes to software artifacts (code, documentation, data). Ensures integrity and traceability throughout the lifecycle.

    • Configuration Items: Software products that are baselined and controlled (source code, executables, documentation, test cases).
    • Versioning: Managing different versions of configuration items. Version numbering schemes: semantic versioning (major.minor.patch, e.g., 1.2.3), date-based versioning.

Key Terms

  • Software Maintenance, Corrective, Adaptive, Perfective, Preventive, Software Evolution, Lehman's Law (Belady-Lehman), Adaptation, Re-Engineering, Configuration Management, Configuration Items, Versioning, Semantic Versioning

Unit Summary

Software maintenance is the longest phase of the software lifecycle, often accounting for 60-80% of total costs. Maintenance types include corrective (bug fixes), adaptive (environmental changes), perfective (improvements), and preventive (future problem avoidance). Configuration management tracks changes to software artifacts through versioning and baselining. Re-engineering restructures existing software to improve maintainability. Understanding maintenance is essential for planning long-term software success and resource allocation.

Practice Questions

Q1. What are the four types of software maintenance? (Answer: Corrective (fix bugs), Adaptive (environment changes), Perfective (improve/ add features), Preventive (avoid future problems).)

Q2. Which type of maintenance accounts for the largest percentage of efforts: corrective, adaptive, perfective, or preventive? (Answer: Perfective maintenance (~40-60%) is the largest share of maintenance effort. Corrective (~20-25%) is the next most common; adaptive and preventive make up the remainder.)

Q3. What is software adaptation? (Answer: Modifying software to run in a different environment or for a different purpose. Example: porting from Windows to Linux, adapting desktop app for mobile.)

Q4. What is re-engineering and when is it used? (Answer: Restructuring existing software to improve maintainability without changing external behavior. Used when original design is lost, code is spaghetti, or maintenance cost is too high.)

Q5. What is configuration management and why is it important? (Answer: Tracks and controls changes to software artifacts (code, docs, data). Ensures integrity, traceability, and prevents configuration drift. Version management (semantic versioning) is part of CM.)

Q6. What is semantic versioning and how does it work? (Answer: Version numbering scheme: major.minor.patch (e.g., 2.3.1). Major: incompatible API changes. Minor: added functionality backward-compatible. Patch: backward-compatible bug fixes.)

Q7. Explain the relationship between development cost and maintenance cost. (Answer: According to Boehm's model, maintenance cost = a + b × development cost. Typically, maintenance costs exceed development costs over the software lifecycle, often reaching 60-80% of total lifecycle costs.)


Unit 8: Managing Software Projects

Teaching Hours: 2

Needs for the Proper Management of Software Projects:

  • Why Project Management? Software projects are complex, involve multiple stakeholders, have uncertain requirements, and can fail if not managed properly. Poor project management leads to delays, cost overruns, quality issues, and project failure. Effective project management ensures delivery on time, within budget, and to specified quality.

  • Management Activities:

    • Project Planning: Defining the project scope, objectives, and deliverables. Creating a project plan with milestones, resources, and timeline. Identifying risks and mitigation strategies.
    • Estimating Costs: Predicting the effort, time, and resources required. Techniques: expert judgment, analogy-based estimation, parametric modeling (COCOMO), decomposition (WBS). Accurate estimation is critical for planning and stakeholder management.
    • Project Scheduling: Creating a detailed schedule of activities, dependencies, and timelines. Gantt charts, critical path method (CPM), program evaluation and review technique (PERT). Scheduling considers resource availability and constraints.
    • Risk Management: Identifying, analyzing, and mitigating risks. Risk identification (brainstorming, checklists, SWOT analysis). Risk analysis (probability and impact assessment). Risk mitigation (avoid, transfer, mitigate, accept). Risk register and monitoring.
    • Managing People: Building and leading the project team. Team formation, role assignment, motivation, communication, conflict resolution. People are the most valuable resource in software projects.

Project Planning:

  • Project Plan Components: Scope statement, work breakdown structure (WBS), schedule, cost baseline, risk register, quality plan, communication plan.

  • Work Breakdown Structure (WBS): Decomposing the project into smaller, manageable components (features, modules, tasks). WBS hierarchy: project → phases → deliverables → work packages. Each WBS element should be independently assignable, estimable, and trackable.

    • Worked Example: WBS for a simple e-commerce site: Site (project) → Phases (design, development, testing) → Deliverables (UI design, database, API) → Work packages (login page, product catalog page, shopping cart integration).
  • Schedule Network Diagram: Depicts activity sequences and dependencies. Activity-on-node (AON) and activity-on-arrow (AOA) diagrams. Critical path identification: the longest path through the network, determining the minimum project duration.

Estimating Costs:

  • Estimation Techniques:

    • Expert Judgment: Opinions of experienced personnel (developers, project managers). Quick, but subjective and potentially biased.
    • Analogy-Based Estimation: Using actual effort from similar past projects as a basis. Adjust for differences in scope, technology, team experience. Requires a historical database of past projects.
    • Parametric Modeling (COCOMO): Constructive Cost Model. Estimates effort based on program size (KLOC - Kilo Lines of Code).
      • Basic COCOMO: Effort = a × (KLOC)^b. Constants a, b depend on project type: organic (2.4, 1.05), semidetached (3.0, 1.12), embedded (3.6, 1.20).
      • Worked Example: Organic project, 10 KLOC: Effort = 2.4 × 10^1.05 ≈ 2.4 × 11.22 = 26.93 person-months.
    • Decomposition (WBS): Breaking down the project into smaller components and estimating each component. Sum of component estimates gives total estimate. More accurate for complex projects.
  • Project Scheduling: Creating a detailed schedule of activities, dependencies, and timelines. Gantt charts visualize the schedule. Critical path method (CPM) identifies the longest path through the network diagram, determining the minimum project duration. Slack (float) time: activities on the critical path have zero slack; delays on these activities delay the entire project.

  • Risk Management:

    • Risk Identification: Techniques: brainstorming, checklists, SWOT analysis, past project databases. Identify potential risks early in the project.
    • Risk Analysis: Probability (likelihood) and impact (consequence) assessment. Risk matrix (probability vs. impact). High-priority risks need mitigation.
    • Risk Mitigation Strategies:
      • Avoid: Change the project plan to eliminate the risk.
      • Transfer: Shift the risk to a third party (insurance, outsourcing).
      • Mitigate: Reduce the probability or impact of the risk (prototype, additional testing, fallback plans).
      • Accept: Acknowledge the risk and proceed with contingency plans if it occurs.
    • Risk Register: Document recording all identified risks, their probability, impact, mitigation strategies, and owners. Living document updated throughout the project.
  • Managing People:

    • Team Formation: Selecting the right people with appropriate skills, experience, and attitudes. Consider skill complementarity and team dynamics.
    • Role Assignment: Assigning clear roles and responsibilities (project manager, lead developer, QA tester, designer, etc.). RACI matrix (Responsible, Accountable, Consulted, Informed).
    • Motivation: Keeping the team motivated through recognition, clear goals, healthy work environment, professional development opportunities.
    • Communication: Establishing regular communication channels (stand-up meetings, status reports, tools like Slack, Jira). Ensuring information flows effectively between all stakeholders.
    • Conflict Resolution: Addressing disagreements constructively. Mediation, consensus-building, focusing on project goals.

Key Terms

  • Project Management, Project Planning, Estimating Costs, Project Scheduling, Risk Management, Work Breakdown Structure (WBS), Critical Path Method (CPM), Slack (Float), Risk Identification, Risk Analysis, Risk Mitigation, Risk Register, Managing People, Team Formation, Role Assignment, Motivation, Communication, Conflict Resolution, RACI Matrix

Unit Summary

Effective project management is essential for delivering software projects on time, within budget, and to specified quality. Key activities include planning, estimating, scheduling, risk management, and people management. The Work Breakdown Structure (WBS) decomposes the project into manageable components. The Critical Path Method (CPM) identifies the minimum project duration. Risk management involves identification, analysis, and mitigation. Successful project management combines structured processes with good communication and team leadership.

Practice Questions

Q1. Why is project management important in software development? (Answer: Software projects are complex, involve multiple stakeholders, have uncertain requirements, and can fail if not managed properly. Effective management ensures on-time, on-budget, quality delivery.)

Q2. What is a Work Breakdown Structure (WBS) and how is it used? (Answer: WBS decomposes the project into smaller, manageable components (features, modules, tasks). Hierarchy: project → phases → deliverables → work packages. Each element should be independently assignable, estimable, and trackable.)

Q3. What is the Critical Path Method (CPM) and what does it determine? (Answer: CPM identifies the longest path through the project network diagram, determining the minimum project duration. Activities on the critical path have zero slack; delays delay the entire project.)

Q4. Compare expert judgment and parametric estimation (COCOMO) for cost estimation. (Answer: Expert judgment uses experienced personnel opinions (quick but subjective). Parametric modeling (COCOMO) uses mathematical formulas based on program size (KLOC) and project type constants (more objective, data-driven).)

Q5. What are the four risk mitigation strategies? (Answer: Avoid (eliminate the risk), Transfer (shift to third party), Mitigate (reduce probability/impact), Accept (acknowledge and proceed with contingencies).)

Q6. What is a RACI matrix and how is it used? (Answer: RACI matrix defines roles: Responsible (does the work), Accountable (owns the outcome), Consulted (provides input), Informed (kept updated). Used for clear role assignment and responsibility assignment in projects.)

Q7. What is the difference between risk avoidance and risk mitigation? (Answer: Risk avoidance changes the project plan to eliminate the risk entirely. Risk mitigation reduces the probability or impact of the risk but does not eliminate it.)


References

  • Pressman, R.S. (2019). Software Engineering: A Practitioner's Approach (9th ed.). McGraw-Hill.
  • Sommerville, I. (2016). Software Engineering (10th ed.). Pearson.
  • IEEE Std 830-1984. IEEE Recommended Practice for Software Requirements Specifications.
  • IEEE Std 1028-2008. IEEE Standard for Software Reviews and Audits.
  • IEEE Std 1044-1993. IEEE Standard Glossary of Software Engineering Terminology.
  • TU BCA Syllabus (2025). Software Engineering, Semester 4. Tribhuvan University. No verified numbered unit outline or topic list in the cited 2025 document; unit structure in this guide is indicative.

Content Audit

  • Unit Count: 8 (indicative; not verified against 2025 syllabus)
  • Topic Count: 40
  • Covered Topic Count: 40
  • Word Count: ~4800
  • Unresolved Items: None
  • Note: Coverage is unverified against the 2025 syllabus, which states no verified numbered unit outline or topic list.