Question:medium

In the context of programming the term 'debugging' refers to:

Show Hint

Remember the etymology: a "bug" is an error. To "de-bug" is to remove the errors. The process involves both locating the source of the problem and then implementing a fix.
Updated On: Feb 18, 2026
  • writing the code
  • documenting the code
  • finding and fixing errors in the code
  • running the code
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: Define 'debugging'.
Debugging's origin stems from a historical incident involving a moth (a physical bug) causing a computer malfunction. In programming, a "bug" signifies an error within a computer program that leads to incorrect or unanticipated outputs or behaviors.

Step 2: Analyze the debugging process.
Debugging is the systematic process of finding and eliminating program errors (bugs) in software or hardware, ensuring intended behavior. It encompasses pinpointing the error's source and implementing corrections.

Step 3: Evaluate the options.
(A) Writing code is coding or programming.

(B) Documenting code is explaining the code's function. 

(C) "Finding and fixing code errors" is the definitive definition of debugging. 

(D) Code execution (running the code) is testing; it frequently precedes bug detection but is not debugging itself.

Was this answer helpful?
0


Questions Asked in CUET (PG) exam