Courses / HEC NSCT – National Skill Competency Test: Complete Preparation for Computing Graduates
5.4 Design, Architecture and Design Patterns
Area 5 – Software Engineering (10%) · 45 min read · 10 MCQs to check yourself
Good design principles
- High cohesion (a module does one job well) and low coupling (modules depend little on each other).
- SOLID: Single responsibility, Open/closed (open for extension, closed for modification), Liskov substitution, Interface segregation, Dependency inversion.
- Separation of concerns, information hiding, modularity.
Architectural styles
| Style | Idea | Example |
|---|---|---|
| Layered (n-tier) | Presentation → business logic → data | Typical web app |
| Client–server | Clients request, server responds | Email, web |
| MVC | Model (data), View (UI), Controller (input handling) | Django, Laravel, Spring MVC |
| Microservices | Small independent services communicating via APIs | Large e-commerce platforms |
| Monolith | One deployable unit | Small projects, early startups |
| Event-driven | Components react to events/messages | Notifications, IoT |
| Pipe-and-filter | Data flows through processing steps | Compilers, data pipelines |
Design patterns (Gang of Four)
| Category | Pattern | Use |
|---|---|---|
| Creational | Singleton | Only one instance (logger, config) |
| Creational | Factory | Create objects without specifying exact class |
| Creational | Builder | Build complex objects step by step |
| Structural | Adapter | Make incompatible interfaces work together |
| Structural | Decorator | Add behaviour dynamically |
| Structural | Facade | Simple interface to a complex subsystem |
| Behavioural | Observer | Notify subscribers of changes (event listeners) |
| Behavioural | Strategy | Swap algorithms at run time |
UI design: consistency, feedback, error prevention, accessibility (WCAG), minimal memory load.
10 design patterns explained in 10 minutes (Fireship)
This lesson ends with a quiz of 10 MCQs. Open the lesson on PrepOasis to take it and save your progress.
Previous: 5.3 Requirements Engineering and UML · Next: 5.5 Testing, Quality, Maintenance and Project Management