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 ?
- (A) S → ABA → Aa | bB → c
- (B) S → Ab | Bb | cA → Bd | εB → e
- (C) S → Aa | BA → Bb | Sc | εB → d
- (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