Sunday, February 14, 2010

Software Programming Errors

The software programming errors are also called as program bugs. The process of removing error called as program debugging. The software programming errors occurs due to improper input validation, improper encoding, failure to preserve SQL query structure (SQL injection), and failure to preserve Web page structure. The large number of bugs in one program is called as buggy.

The most common software bugs are bugs due to conceptual error, math bugs, and resource bugs. The bugs due to conceptual errors include syntactically incorrect program, wrong or inappropriate design. The math bugs occurred due to overflow or underflow of arithmetic and the resource bug involves buffer overflow and access violation.

The types of software programming errors are:
The three major types of software programming errors are syntax error, logic error, and semantic errors.

1. Syntax errors:
The syntax error occurs due to not following rule of syntax. The common syntax rule is the use semicolon in the beginning and at terminating each program statement.

2. Logic error: The logic error occurs due to infinite loops and infinite recursion.
3. Semantic errors: This type of software error occurs when you obey the syntax rules of the language but are using the statement out of context.

No comments: