1.

Which one of the following statements is FALSE?1. Context-free grammar can be used to specify both lexical and syntax rules.2. Type checking is done before parsing3. High level language programs can be translated to different Intermediate Representations4. Arguments to a function can be passed using the program stack

Answer» Correct Answer - Option 2 : Type checking is done before parsing
  • Type checking performs at the semantic analysis phase, and parsing performs at the syntax analysis phase. Since the Syntax analysis phase comes before semantic analysis, therefore Type Checking is always done after parsing.
  • Therefore Option 2 is false and is the correct answer.


Discussion

No Comment Found

Related InterviewSolutions