COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

COMPILATION PROCESS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Varibles are checked that they are used properly and the that operations such as (+-/ and *) have been correctly used at this stage
A
Lexical analysis
B
syntax analysis
C
semantic analysis
D
code generation
Explanation: 

Detailed explanation-1: -Semantic analysis is the task of ensuring that the declarations and statements of a program are semantically correct, i.e, that their meaning is clear and consistent with the way in which control structures and data types are supposed to be used.

Detailed explanation-2: -We have mentioned some of the semantics errors that the semantic analyzer is expected to recognize: Type mismatch. Undeclared variable. Reserved identifier misuse.

There is 1 question to complete.