COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Compiler can check ____
|
Logical error
|
|
Syntax error
|
|
Text error
|
|
Both logical and syntax error
|
Explanation:
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: -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.
There is 1 question to complete.