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

Prepare for the IT GACE Computer Science Test. Utilize flashcards and a variety of question formats, each complete with hints and detailed explanations. Ensure your success on exam day!

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 Passetra

You can unsubscribe at any time. Read our privacy policy