GATE CS 2016, set 2 · Question 55 · Compiler Design · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Which one of the following grammars is free from left recursion ?

  1. (A) S → ABA → Aa | bB → c
  2. (B) S → Ab | Bb | cA → Bd | εB → e
  3. (C) S → Aa | BA → Bb | Sc | εB → d
  4. (D) S → Aa | Bb | cA → Bd | εB → Ae | ε
Answer

Answer (B)

Answer from the official GATE CS 2016 answer key.

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