COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The compiler can detect what type of errors?
|
neither logical nor grammatical error
|
|
logical errors only
|
|
grammatical errors only
|
|
both grammatical and logical errors
|
Explanation:
Detailed explanation-1: -Explanation: The compiler is only capable of detecting whether the code is written according to the syntax of the programming language. Therefore, it can only diagnose grammatical errors only. It will not throw an error in case of a logical error .
There is 1 question to complete.