Which type of error is commonly detected during compilation?

Options

  • A. Syntax error
  • B. Incorrect business decision
  • C. Incorrect user requirement
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. Syntax error

Detailed Explanation

Correct Answer: A — Syntax error.

Explanation: A compiler commonly detects syntax errors and may detect type errors or other semantic problems. Some errors, such as logic errors, can remain undetected even when a program compiles successfully.