The program contains some errors, usually more than what you imagined. These errors called ‘bugs’ and the art of locating and eliminating bugs is called ‘debugging’.
– Debugging removes only syntax errors. The program may still contain logic errors. These errors can be caught only during running of the program. This may result in either abnormal ending of the program or incorrect results.
– Program testing is used to discover any errors that are not detected by the conditions.
– All the various conditions and paths that the processing may take during execution should also be tested. This ensures that there is no error in branching and jumping.