The compiler can check for:
Q1. The compiler can check for:
Answer: Syntax Error
Explanation: A compiler checks for syntax errors (violations of language grammar rules) during compilation but cannot detect logical errors, which only appear at runtime.