ERRORS
Errors is also known as buggs. Errors are the malfunctioning of the programming which may be due to incorrect syntax we write, wrong logics we used in the program and also can be occurred due to the run-time. There are 3 types of errors committed by programmers when doing the programming.
1. Syntax errors
2. Logic errors
3. Run-time errors
1. Syntax errors:
Syntax errors are those errors which is due to the violation of the rules of programming language on syntax.
On encountering these errors, a computer gives error message. Its easy to debug.
2. Logic errors:
Logic errors are those errors which is due to the wrong logic by the programmers or by missing of the statements. These types of errors are difficult to debug as we have to find these errors by ourselves and computer doesn't display such errors for us.
3. Run-time errors:
Run-time errors are those which is due to the execution of the ambiguous instructions by the programmers. Such error occurs due to the infinite loop statement , device errors ,software errors etc. The error message will be printed on the computer. Some of the run-time errors are as follows:
-Divide by zero , Null pointer assignment , Data overflow etc.
DEBUGGING:
Debugging is the process of discovering and removing the errors form a program. In debugging , we find the errors in the program and remove these errors so that the program runs correctly and orderly without errors.
One simple method for debugging is to place Print statement throughout the program which will be displaying the values of variables. This will display the dynamics of a program and let us to examine as well as compare the information at various points. Once location of an error is found and errors are corrected, then we can remove the debuggin statements.
TESTING:
It is the method of reviewing and executing a program with the aim of finding the errors in the program. It can be done manually and as well as computer based.
Manual Testing is one of the effecting error-detection process which is done before the computer based testing occurs. This manual testing includes code inspection by the programmers (us), by a test group and review by a peer group.
Computer based testing is done by the help of computer which is performed by the compiler. Compiler is hte program which will changes source codes into the codes understandable by the machines word by word).
In this blog , I give brief ideas about the errors , Debugging and testing which is required in the programming language. These are the terms and factors which play vital roles in the good programs. After testing , debuggin only , then the program is ready for the next step with the errorless codes.
If you have any comments please let me know in the comment box below.
0 comments:
Post a Comment