Multiple choiceQuestion 1 · Recall
Loading…
By the end you can identify and correct syntax, logic, and run-time errors; describe and select appropriate testing methods (dry run, walkthrough, white-box, black-box, integration, alpha, beta, acceptance, stub); create test strategies and plans with normal, abnormal, and boundary test data; explain corrective, adaptive, and perfective maintenance; and analyse programs to make amendments.
Syntax errors — violate language rules
Logic errors — program runs but produces wrong results
<= instead of <)Run-time errors — crash during execution
Static testing (code not executed):
Dynamic testing (code executed):
User-facing testing:
Test strategy — high-level approach
Test plan — detailed execution document
Test data categories (must know):
Worked example: Test data for a login system (age 13-19)
Identify normal, abnormal, and boundary test data for a registration age field accepting 13-19 inclusive.
Process:
Common debugging techniques:
Corrective maintenance — fix defects found in use
Adaptive maintenance — modify for changed environment
Perfective maintenance — enhance without fixing a defect
Preventive maintenance (beyond syllabus) — refactor to prevent future issues
Key point: Maintenance starts at delivery and continues until retirement. Design for maintainability (modularity, documentation, tests) reduces long-term cost.
Worked example: Analysing and amending a program
A program reads 10 numbers and prints the maximum. Current code initialises max=0. Fix it to handle negative numbers.