GATE CS 2022 · Question 13 · Compiler Design · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Which one of the following statements is TRUE?

  1. (A) The LALR(1) parser for a grammar G cannot have reduce-reduce conflict if the LR(1) parser for G does not have reduce-reduce conflict.
  2. (B) Symbol table is accessed only during the lexical analysis phase.
  3. (C) Data flow analysis is necessary for run-time memory management.
  4. (D) LR(1) parsing is sufficient for deterministic context-free languages.
Answer

Answer (D)

Answer from the official GATE CS 2022 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes