COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Logical
|
|
Syntax
|
|
Both A and B
|
|
None
|
Detailed explanation-1: -Which of the following errors can a compiler check? Explanation: Compiler can only check syntax errors.
Detailed explanation-2: -A syntax error in computer science is an error in the syntax of a coding or programming language, entered by a programmer. Syntax errors are caught by a software program called a compiler, and the programmer must fix them before the program is compiled and then run.
Detailed explanation-3: -Explanation: No compiler can ever check logical errors.
Detailed explanation-4: -Logic errors occur when a program does not do what the programmer expects it to do. Since these errors are due to wrong logic in the program, logic errors cannot be identified by the compiler; they are detected only when the program is executed.