CBSE Class 12 Computer Science Question 10 of 30

Exception Handling — Question 1

Back to all questions
1
Question

Question 1

The errors encountered when a user violates the syntax of a programming language while writing a code are termed as ............... .

  1. Compile time error
  2. Logical error
  3. Runtime error
  4. Exception
Answer

Compile time error

Reason — When a user violates the syntax of a programming language while writing code, it results in a compile-time error. These errors are detected by the compiler during the compilation process and prevent the program from being compiled successfully.