Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Program Errors: Types and Definition

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 8

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.

Examples: attempt to divide by zero, overflow.

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.

You might also like