Discussion
Type checking is normally done during ....................... .
Answer: D
Type checking is normally done during Syntax Directed Translation.
Type checking is part of semantic analysis. In the Aho, Lam, Sethi and Ullman treatment, it is implemented as a syntax-directed translation: semantic rules attached to the grammar productions compute the types of expressions from the types of their parts and report mismatches as the parse tree is built.
Lexical analysis only groups characters into tokens and knows nothing about types. Syntax analysis checks that the token sequence fits the grammar, which says nothing about whether the operand types agree. Code generation comes after the checks and uses type information that is already established.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development