Question Detail

COS 102 concept of problem solving; lecture 1 week 2 Objective Question

Question

What is the relationship between testing and debugging, as described in the document?
Options
A Testing replaces debugging entirely.
B Debugging must always precede testing.
C Testing finds errors, and debugging localizes and repairs them, forming a cycle.
Correct Answer
D They are completely independent processes with no interaction.
Correct Answer

Option C is the correct answer.

Detailed Explanation

Slide 13 states: 'Testing finds errors; debugging localizes and repairs them. Together these form the 'testing/debugging cycle': we test, then debug, then repeat.'

Hint

Look for the section that explains how 'Testing and debugging go together' on Slide 13.

Question Info