Discussion
Which one of the following statements is FALSE?
Answer: B
The false statement is Type checking is done before parsing.
Type checking is part of semantic analysis, which works on the parse tree or syntax tree. It needs to know the structure of expressions and declarations, so it comes after parsing.
The other statements are true. Regular token patterns are a special case of context-free languages, so a context-free grammar can describe both lexical and syntax rules, even though lexers usually use regular expressions. A program can be translated to several intermediate representations, such as syntax trees, three-address code or SSA form. And the program stack is the usual way to pass arguments in a function call.
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