MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The compiler can detect what type of errors?
A
neither logical nor grammatical error
B
logical errors only
C
grammatical errors only
D
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.