Program Errors: Types and Definition
Program Errors: Types and Definition
Program Errors: Types and Definition
Syntax error
An incorrect use of the rules that construct legal program statements. A grammatical mistake. wrie(This is an example of syntax error);
Logical error
An error in the design of the program. The program may be grammatically correct, but it is not doing what you intended it to do.
Runtime error
Error that is first detected when the program is run.
Debugging
The detection, location and correction of bugs (program errors).
Testing
Efforts made to examine if a program is grammatically correct (no syntax errors), and does what was intended (no logical errors).
Test data
Data used to test a program. As well as the data, the expected results are specified. Normal data, extreme data, illegal data are tested.
Trace table
A table with a column for each variable used and one for the output. Each row shows a change in a variable or output as the program is executed.