UGC-NET | UGC NET CS 2018 Dec – II | Question 76
Consider the following Grammar G :
S ➝ A | B A➝ a | c B➝ b | c
Where {S, A, B} is the set of non-terminals, {a,b,c} is the set of terminals.
Which of the following statement(s) is/are correct ?
- S1 : LR(1) can parse all strings that are generated using grammar G.
- S2 : LL(1) can parse all strings that are generated using grammar G.
(A) Both S1 and S2
(B) Only S2
(C) Neither S1 nor S2
(D) Only S1
Answer: (C)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Please Login to comment...