Q: What type of programming error occurs when the syntax of a programming language is violated?
-
A
Logical Error
-
B
Compilation Error
-
C
Runtime Error
-
D
Syntax Error
D
Answer:
D
Explanation:
Syntax errors occur when the rules of a programming language are violated. These errors are detected by the compiler during the compilation process and must be fixed before the program can be executed.
Related Topic:
Share Above MCQ