Program Errors | |||||||||||||||||||||||||||||
It is important that software always works correctly. Some programs may seem to perform well for years then a particular piece of data may cause an error to occur! Programs can generally not be tested completely but enough tests can be performed to give us reasonable confidence that it works. Subroutines should be tested individually. A 'test harness' - a program which tests the modules can be coded and run. Once tested, the subroutine may then be confidently used in many programs. Errors may be
Compile-time (Translation) errors occur when the program is being compiled (usually syntax errors). Run-time (Execution) errors occur when the program is being run (usually logical errors). |
|||||||||||||||||||||||||||||