GATE 2018 CS – Question 18
Compiler Design · Runtime Environments · 1 mark · Multiple choice
Which one of the following statements is FALSE?
- Context-free grammar can be used to specify both lexical and syntax rules.
- Type checking is done before parsing.
- High-level language programs can be translated to different Intermediate Representations.
- Arguments to a function can be passed using the program stack.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) Type checking is done before parsing.
Explanation
Type checking is a semantic analysis done after parsing (it needs the parse tree), so B is false.
More Runtime Environments questions
- GATE 2014 CS (CS2) Q28 – Which is NOT performed during compilation?
- GATE 2014 CS (CS3) Q28 – Which statements are correct? 1. Static allocation of all data areas by a compiler makes…
- GATE 2012 CS Q46 – In a lexically scoped block-structured language, main contains sibling procedures A1 and…
- GATE 2010 CS Q24 – Which languages necessarily need heap allocation in their runtime environment?
- GATE 2008 CS Q54 – Which are true? I. A language without globals or nested procedures, but permitting…
- GATE 2023 CS Q36 – Consider the following program: Which one of the following options represents the…
All Runtime Environments questions →