In the context of programming, a comment in program code is used to: A. Explain portions of the code.
B. Make the program run faster.
C. Change the output of the program.
D. Temporarily remove a line of code.
In the context of programming, a comment in program code is used to: A. Explain portions of the code.
B. Make the program run faster.
C. Change the output of the program.
D. Temporarily remove a line of code.
The correct answer is A. Explain portions of the code.
Comments in programming are used to provide explanations or annotations within the code to help readers understand what specific parts of the code are doing. They do not affect the execution of the program, meaning they don’t make the program run faster, change output, or remove lines of code; instead, they serve as helpful documentation for anyone who reads the code later.