Gate CS-2017-1 Question Paper With Solutions

Q. 23 Consider the following grammar

p --> xQRS
Q --> yz|z
R --> w|∈
S -> y

Which is FOLLOW(Q)?

(A) {R}

(B) {w}

(C) {w, y}

(D) {w, ∉}

Answer: (C)

Explanation:

Gate CS-2017-1 Question Paper With Solutions

Learn More:   Gate EC-2016 - 1 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here