Define ‘Syntax Error’ and give an example.
An error that breaks the grammatical rules of a programming language and prevents it from running, such as misspelling a keyword like print.
Define ‘Logic Error’.
An error where the program runs but produces incorrect or unexpected output.
Explain the difference between ‘Iterative’ and ‘Final’ testing.
Iterative testing happens during development as modules are completed, while final testing occurs at the end of production before release.
Define ‘Normal’, ‘Boundary’, and ‘Invalid’ test data.
Normal data is valid and expected; boundary data is at the edge of valid limits; invalid data is the wrong type or outside limits and should be rejected.
List four ways to improve the ‘Maintainability’ of program code.
Use comments, meaningful identifiers, proper indentation, and subroutines to modularise code.