Exam-style question
Try this first
Which feature best demonstrates self-documenting code?.
- A.Using meaningful identifiers and well-structured code
- B.Adding comments to every line of code
- C.Using the shortest possible variable names
- D.Putting all code in one large section
Answer and explanation
Concise answer
Using meaningful identifiers and well-structured code
Why this is correct
Self-documenting code uses meaningful identifiers and a clear structure, reducing the number of comments needed to understand it.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
