Multiple choice general knowledge

The errors that can be pointed out by the compiler are

  1. Syntax error

  2. Symantic error

  3. Logical error

  4. Internal error

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Compilers check source code against the language's grammar rules and report violations as syntax errors. These include missing semicolons, unmatched brackets, or incorrect keyword usage. Semantic errors relate to meaning (e.g., type mismatches) and may only be caught by some compilers, while logical errors (bugs) and internal errors are runtime or system issues beyond compilation.