Software Engineering & Agile Lifecycle: Design Patterns, Testing & CI/CD
Software Engineering accounts for 10% of the NSCT, evaluating professional industry readiness. Questions focus on the Software Development Life Cycle (SDLC), Agile ceremonies, architectural design patterns, and quality assurance methodologies.
1. SDLC Models: Waterfall vs Agile
| Attribute | Traditional Waterfall | Agile (Scrum / Kanban) |
|---|---|---|
| Requirements | Fixed upfront, documented exhaustively | Flexible, evolving via User Stories |
| Delivery | Single monolithic release at end of project | Incremental working software every 1–4 week Sprint |
| Risk Management | High risk of late-stage failure | Continuous feedback and early risk mitigation |
| Customer Involvement | Primarily at requirements and final UAT | Active participation in Sprint Demos and Backlog refinement |
Scrum Ceremonies & Roles
- Product Owner: Defines features, maintains and prioritizes the Product Backlog.
- Scrum Master: Facilitates processes, removes team blockers (impediments), protects team from external scope creep.
- Sprint Planning: Selects user stories from product backlog into sprint backlog.
- Daily Standup: 15-minute sync (What did I do yesterday? What will I do today? Any blockers?).
- Sprint Review: Demo of working software to stakeholders.
- Sprint Retrospective: Continuous internal team improvement (What went well? What needs improvement?).
2. SOLID Design Principles
- S - Single Responsibility Principle (SRP): A class should have one, and only one, reason to change.
- O - Open/Closed Principle (OCP): Software entities should be open for extension, but closed for modification.
- L - Liskov Substitution Principle (LSP): Subtypes must be substitutable for their base types without altering program correctness.
- I - Interface Segregation Principle (ISP): Clients should not be forced to depend on interfaces they do not use.
- D - Dependency Inversion Principle (DIP): High-level modules should not depend on low-level modules; both should depend on abstractions.
3. GoF Design Patterns Commonly Tested
- Creational:
- Singleton: Ensures a class has only one instance and provides a global access point.
- Factory Method: Creates objects without specifying the exact class to create.
- Builder: Separates complex object construction from its representation.
- Structural:
- Adapter: Converts the interface of a class into another interface clients expect.
- Decorator: Attaches additional responsibilities to an object dynamically without subclassing.
- Facade: Provides a simplified high-level interface to a complex subsystem.
- Behavioral:
- Observer: Defines a one-to-many dependency so that when one object changes state, all dependents are notified automatically (Pub/Sub).
- Strategy: Defines a family of algorithms, encapsulates each one, and makes them interchangeable at runtime.
4. Testing Hierarchy & Levels
- Unit Testing: Tests individual methods/classes in isolation (using Mocks/Stubs).
- Integration Testing: Verifies multiple modules or services communicate correctly.
- System Testing: End-to-end testing of the complete software system against functional requirements.
- Acceptance Testing (UAT): Evaluates whether the product satisfies business user acceptance criteria.
- Regression Testing: Re-running existing tests to verify recent code changes have not broken existing functionality.
Indexed Competency Concepts:
#Software Engineering#Agile#Scrum#Design Patterns#CI/CD#Testing
Official Standards Verification
Content structured in accordance with Higher Education Commission (HEC) Computing National Curriculum, PSEB TechLift competency standards, and the 120-minute Virtual University assessment model.