The errors that can be pointed out by the compiler are
Answer: B
Correct answer: Syntax errors
A compiler checks the program against the grammar of the language, so it catches syntax errors - a missing semicolon, an unmatched bracket, an undeclared name - and refuses to produce code until they are fixed. A logical error breaks no rule of the language: the program compiles and runs, but computes the wrong thing, and only testing reveals it.
Please log in or register to report this question.