Multiple choice

How are comments useful?

  1. It is necessary for your program to run correctly.

  2. Helps you remember what a segment of code does.

  3. Comments are used to fix your code.

  4. Makes your code look pretty!

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Comments are ignored by the compiler and do not affect how a program runs or fix errors. Instead, they serve as documentation to help programmers understand and remember what specific sections of code do.