Courses / HEC NSCT – National Skill Competency Test: Complete Preparation for Computing Graduates
5.5 Testing, Quality, Maintenance and Project Management
Area 5 – Software Engineering (10%) · 50 min read · 39 MCQs to check yourself
Testing levels
Unit (single function) → Integration (modules together) → System (whole system against SRS) → Acceptance (user/customer, UAT; alpha at developer site, beta at user site).
Techniques
| Black-box (no code knowledge) | White-box (uses code structure) |
|---|---|
| Equivalence partitioning, boundary value analysis, decision tables, state transition | Statement, branch/decision, path coverage; cyclomatic complexity |
- Boundary value analysis: for valid age 18–60, test 17, 18, 60, 61.
- Cyclomatic complexity V(G) = E − N + 2 = number of decisions + 1 → minimum independent paths to test.
- Regression testing after changes; smoke testing (quick build check); performance/load/stress testing; security testing.
- Verification = "Are we building the product right?" (reviews, inspections). Validation = "Are we building the right product?" (testing with users).
- TDD: write a failing test → write code to pass → refactor.
- Error (human mistake) → fault/defect/bug (in code) → failure (wrong behaviour at run time).
Maintenance types
| Type | Purpose |
|---|---|
| Corrective | Fix bugs |
| Adaptive | Adjust to new environment (new OS, law) |
| Perfective | Add features / improve performance |
| Preventive | Refactor to avoid future problems |
| Maintenance is usually the largest share of lifetime cost. |
Project management
- Triple constraint: scope, time, cost (quality in the middle).
- Estimation: COCOMO (effort from KLOC), function points, story points, expert judgement.
- Scheduling: Gantt chart, PERT/CPM – the critical path is the longest path; any delay on it delays the project.
- Risk management: identify → analyse (probability × impact) → plan (avoid, mitigate, transfer, accept) → monitor.
- Configuration management: version control, baselines, change control board. Brooks' law: adding people to a late project makes it later.
- Quality: ISO 9001, CMMI maturity levels 1–5; code reviews; metrics (LOC, defect density = defects ÷ KLOC).
5 types of software testing every developer needs to know (Alex Hyett)
This lesson ends with a quiz of 39 MCQs. Open the lesson on PrepOasis to take it and save your progress.
Previous: 5.4 Design, Architecture and Design Patterns · Next: Area 5 Review, Checklist and Area Test