CodeHS AP Computer Science Principles (CSP) Practice Exam

Session length

1 / 20

Which practice involves finding and fixing problems in your algorithm or program?

Variable

Debugging

Debugging is the process of finding and fixing problems in your algorithm or program. When code doesn’t behave as expected, you identify where things go wrong, inspect the logic, and correct mistakes so the program produces the intended results. This includes using error messages, running test cases, stepping through code, and observing variable values with prints or a debugger. The other terms refer to different ideas: a variable stores data, a selection chooses between different paths in the code, and a boolean represents true/false. Debugging targets the issues that prevent correct behavior, improving the program’s reliability and accuracy.

Selection

Boolean

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy