A) Find the defects
B) Find the cause of the defect
C) Trace out where the error is occurring
D) Both 1 and 2
E) Both 2 and 3
Correct Answer: E
Solution :[e] Testing is done to find the defects, whereas debugging is done to find the cause of the defect. Debugging involves finding out which portion of the code is causing the defect, modify that code, and checking whether the defect has been removed. It is done to trace out where the error is occurring in order to resolve.
You need to login to perform this action.
You will be redirected in 3 sec