116k views
4 votes
Comments should Your answer: rephrase the code it explains in English be insightful and explain what the instruction's intention is only be included in code that is difficult to understand be used to define variables whose names are not easy to understand

1 Answer

1 vote

Answer:

(b) be insightful and explain what the instruction's intention is.

Step-by-step explanation:

Required

Which describes a comment in options (a) to (d)

Comments are not meant to replace the original code but to explain what the code is meant to do; so that even if the code gets to a non-programmer, the person will understand what the code is all about.

From (a) to (d), only option (b) fits the above description.

User Siem Abera
by
3.8k points