1.

Which of the following statements is false?(a) Unambiguous grammar has both kind of derivations(b) An LL(1) parser is a top-down parser(c) LALR is more powerful than SLR(d) Ambiguous grammar can’t be LR(k)

Answer» The correct option is (a) Unambiguous grammar has both kind of derivations

Easiest explanation: If a grammar has more than one leftmost (or rightmost) derivation the grammar is ambiguous.


Discussion

No Comment Found

Related InterviewSolutions