Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 2 - No. 26)

When is the most appropriate time to use comments when writing code or pseudocode?
Only when the code is completely finished and tested.
To clarify the intention and purpose of a block of code, or when the purpose of some code is not obvious.
To translate the code into multiple languages.
To make the code look more professional.

Explanation

Comments are used to explain your intentions in code, and when the purpose of some code is not obvious. They should be used from the beginning of the project.

Comments (0)

Advertisement