An error in a program that prevents the program from running as expected.

Prepare for the IT GACE Computer Science Test. Use flashcards and multiple choice questions with hints and explanations. Excel in your exam preparation!

Multiple Choice

An error in a program that prevents the program from running as expected.

Explanation:
A bug is an error in a program that prevents it from running as expected. When code has a mistake—such as a typo, incorrect logic, or mismanaged resources—the program may crash, raise an exception, or produce incorrect results. Debugging is the process of finding that bug, understanding why the code behaves differently than intended, and fixing the faulty part so the program runs correctly. The other terms refer to different things: a program is the set of instructions, output is what the program produces, and a run is the act of executing the program.

A bug is an error in a program that prevents it from running as expected. When code has a mistake—such as a typo, incorrect logic, or mismanaged resources—the program may crash, raise an exception, or produce incorrect results. Debugging is the process of finding that bug, understanding why the code behaves differently than intended, and fixing the faulty part so the program runs correctly. The other terms refer to different things: a program is the set of instructions, output is what the program produces, and a run is the act of executing the program.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy