What is testing and debugging?
Testing is the process of checking the program logic, by providing selected sample data and observing the output for correctness.
The process of detecting the errors and correcting them in a program is called debugging.