GATE CS 2017, set 2 · Question 6 · Compiler Design · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Which of the following statements about parser is/are CORRECT?
I. Canonical LR is more powerful than SLR.
II. SLR is more powerful than LALR.
III. SLR is more powerful than Canonical LR.

  1. (A) I only
  2. (B) II only
  3. (C) III only
  4. (D) II and III only
Answer

Answer (A)

Answer from the official GATE CS 2017 answer key.

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