Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which of the following statements is or are true about comments in prog…

Question

which of the following statements is or are true about comments in programming? (2 points)
i. comments are always at the start of a program.
ii. comments are required to be in a program.
iii. comments are skipped when the program executes.

Explanation:

Brief Explanations
  • I: Comments can be placed anywhere in a program for clarity, not just at the start.
  • II: Comments are not mandatory for a program to run; they are for human - readability.
  • III: The compiler or interpreter skips over comments during program execution as they are not part of the code logic.

Answer:

B. III