Certified Secure Software Lifecycle Professional (CSSLP) — Question 13
Which of the following secure coding principles and practices defines the appearance of code listing so that a code reviewer and maintainer who have not written that code can easily understand it?
Answer options
- A. Make code forward and backward traceable
- B. Review code during and after coding
- C. Use a consistent coding style
- D. Keep code simple and small
Correct answer: D
Explanation
The correct answer, 'Keep code simple and small', emphasizes that code should be straightforward, making it easier for reviewers and maintainers to understand. The other options focus on different aspects of coding practices, such as traceability, review processes, and style consistency, which, while important, do not directly address the clarity of the code's appearance.