5
QuizMultiple Choice

Use Data Structures — Cumulative exam

Question 5 • Introduction to Information Technology - EL3701

Which statement about well-formatted code is true?

Answer
A
Well-formatted code is consistently aligned to the right margin to make it more readable.
B
Well-formatted code has no blank lines that could confuse the person reading it.
C
Well-formatted code is broken into meaningful segments to make it easier to understand.
D
Well-formatted code uses highlighting to feature important statements.

Explanation

Well-formatted code is organized into meaningful sections, which helps readers follow its structure and understand what each part does. Consistent indentation is useful, but aligning everything to the right margin is not the goal. Blank lines can also improve readability by separating sections, and highlighting is not a basic requirement of well-formatted code.

AI-written and checked against the verified answer.

Previous
Next