Part of a program that does not work correctly.

Prepare for the Code.org Computer Science Discoveries test. Study with interactive quizzes and comprehensive explanations. Master key concepts and boost your confidence!

Multiple Choice

Part of a program that does not work correctly.

Explanation:
When a program doesn’t work as expected, the issue is called a bug. A bug is any flaw or mistake in the code that causes incorrect results, unexpected behavior, or a crash. The goal is to locate the bug and fix the code so the program runs correctly again. Debugging is the process of tracing through the program, testing parts of the code, and checking variables to find where things go wrong, then making a correction and re-testing. Indentation is about how code blocks are spaced, especially in languages like Python; while improper indentation can cause errors or misbehavior, the general term for a flawed program is a bug. Citation relates to referencing sources, and a hyperlink is a link to a webpage—neither describes an error in the program itself.

When a program doesn’t work as expected, the issue is called a bug. A bug is any flaw or mistake in the code that causes incorrect results, unexpected behavior, or a crash. The goal is to locate the bug and fix the code so the program runs correctly again. Debugging is the process of tracing through the program, testing parts of the code, and checking variables to find where things go wrong, then making a correction and re-testing.

Indentation is about how code blocks are spaced, especially in languages like Python; while improper indentation can cause errors or misbehavior, the general term for a flawed program is a bug. Citation relates to referencing sources, and a hyperlink is a link to a webpage—neither describes an error in the program itself.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy