...
Parsers
October 9, 2023
UGC NET CS 2006 Dec-paper-2
October 9, 2023
Parsers
October 9, 2023
UGC NET CS 2006 Dec-paper-2
October 9, 2023

APPSC-2012-DL-CS

Question 6
Which of the following statements is false?
A
An unambiguous grammar has the same leftmost and rightmost derivation
B
An LL(1) parser is a top-down parser
C
LALR is more powerful than SLR
D
An unambiguous grammar can never be LR(k) for any k
Question 6 Explanation: 
1 is false because unambiguous grammar need not have the same leftmost and rightmost derivation.
4 is false because the correct statement is an ambiguous grammar can never be LR(K) for any k.
Correct Answer: D
Question 6 Explanation: 
1 is false because unambiguous grammar need not have the same leftmost and rightmost derivation.
4 is false because the correct statement is an ambiguous grammar can never be LR(K) for any k.

Leave a Reply

Your email address will not be published. Required fields are marked *