1

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

Correct Answer: Only (S1), (S3) and (S2), (S4)

Make the most of this question

This page focuses on one Theory of Computation and Compiler Design question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.