Gate CS-2006 Question Paper With Solutions

Q. 17 Consider the following grammar

S → FR
R → S | ε
F → id

In the predictive parser table, M, of the grammar the entries M[S, id] and M[R,$] respectively

(A) {S → FR} and {R → ε }

(B) {S → FR} and { }

(C) {S → FR} and {R → *S}

(D) {F → id} and {R → ε}

Answer: (A)

Explanation: Gate CS-2006 Question Paper With Solutions

Learn More:   Gate ME-2019-2 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here