SYNTAX ANALYSIS
ROLE OF THE PARSER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Compiler can diagnose
|
Logical errors only
|
|
Grammatical and logical errors
|
|
Grammatical errors only
|
|
All of the mentioned
|
Explanation:
Detailed explanation-1: -In conclusion, a compiler can diagnose grammatical errors only. Logical errors are not detected by the compiler. Logical errors can be detected by testing the program or using debugging tools.
Detailed explanation-2: -A runtime error cannot be detected by a compiler.
There is 1 question to complete.