CTAL-TTA practice question 14 of 25

Which of the following best describes the reason why poorly written code is usually more difficult to maintain than well written code?

Full set: 174 questions
Answer options
A: It tends to run more slowly, causing performance issues that may be difficult to fix
B: It tends to contain security issues that may require maintenance releases
C: It tends to be difficult for a developer to locate and accurately fix a problem Correct answer
D: It tends to have a lot of internal documentation
Correct Answer:
C. It tends to be difficult for a developer to locate and accurately fix a problem
Explanation

Poorly written code typically lacks structure and organization, making it hard for developers to locate and fix issues. Clarity and maintainability are compromised, leading to difficulties in troubleshooting and modification.

Why Incorrect

A. This option focuses on performance, which is secondary to maintainability.
B. While security issues are a concern, they don't generally relate to maintenance difficulty in most cases.
D. Internal documentation can help maintainability, not hinder it.

References

- Martin, R. C. (2008). "Clean Code: A Handbook of Agile Software Craftsmanship." Prentice Hall.

- McConnell, S. (2004). "Code Complete." 2nd Edition, Microsoft Press.

- Parnas, D. L. (1972). "On the Criteria to be Used in Decomposing Systems into Modules." Communications of the ACM.

Scroll to Top