COMPILER DESIGN

SEMANTIC ANALYSIS

SYMBOL TABLES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A compiler can check
A
Logical error
B
Syntax error
C
Both logical error and syntax error
D
Not logical and syntax error
Explanation: 

Detailed explanation-1: -36. Which of the following errors can a compiler check? Explanation: Compiler can only check syntax errors.

Detailed explanation-2: -A compiler can check for syntax errors but cannot check for logical errors. This is because logical errors are not related to the syntax of the program but rather to its logic. Logical errors can only be identified by running the program and analyzing its output.

There is 1 question to complete.