Home » Compiler Design » Compiler design miscellaneous » Question

Compiler design miscellaneous

  1. Which of the following statements is false?
    1. An unambiguous grammar has same leftmost and ans rightmost derivation
    2. An LL (1) parser is a top – down parser
    3. LALR is more powerful than SLR
    4. An ambiguous grammar can never be LR (k) for any k
Correct Option: A

So (a) & (c) are, true.
An ambiguous grammar can't be LR (K)
So option (a) is false since an unambiguous grammar has unique right most derivation & left most derivations but both are not same. Hence (a) is correct option



Your comments will be displayed only after manual approval.