CAS-005 · Question #396
A developer receives feedback about code quality and efficiency. The developer needs to identify and resolve the following coding issues before submitting the code changes for peer review: - Indexing
The correct answer is A. Linting. Linting is a tool used to analyze code for potential errors, such as indexing beyond arrays, dereferencing null pointers, and detecting unreachable or non-portable code. It helps identify issues with code quality and efficiency early in the development process, making it the most
Question
A developer receives feedback about code quality and efficiency. The developer needs to identify and resolve the following coding issues before submitting the code changes for peer review:
- Indexing beyond arrays
- Dereferencing null pointers
- Potentially dangerous data type combos
- Unreachable code
- Non-portable constructs
Which of the following would be most appropriate for the developer to use in this situation?
Options
- ALinting
- BSBoM
- CDAST
- DBranch protection
- ESoftware composition analysis
How the community answered
(61 responses)- A75% (46)
- B3% (2)
- C8% (5)
- D11% (7)
- E2% (1)
Explanation
Linting is a tool used to analyze code for potential errors, such as indexing beyond arrays, dereferencing null pointers, and detecting unreachable or non-portable code. It helps identify issues with code quality and efficiency early in the development process, making it the most appropriate tool for the developer in this scenario.
Community Discussion
No community discussion yet for this question.