nerdexam
CompTIA

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

Submitted by marco_it· Mar 6, 2026Security Engineering

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)
  • A
    75% (46)
  • B
    3% (2)
  • C
    8% (5)
  • D
    11% (7)
  • E
    2% (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.

Full CAS-005 Practice