1.

Consider the following grammars(S1) :A --> aBCDB --> bc|cC --> d|∈D -> b(S2) :A --> aBCDB --> bc|∈C --> d|cD -> b(S3) :A --> aBCDB --> bc|∈C --> d|∈D -> b(S4) :A --> aBCDB --> bc|cC --> d|cD -> bWhich of the following grammar has same follow set for variable B?

A. Only (S1), (S2) and (S3), (S4)
B. Only (S1), (S3) and (S2), (S4)
C. Only (S2), (S3) and (S1), (S4)
D. None of the above
Answer» C. Only (S2), (S3) and (S1), (S4)


Discussion

No Comment Found

Related MCQs