Q19MSQ1 markWhich of the following grammars is/are ambiguous?(A)S→aSb∣ϵS \rightarrow a S b \mid \epsilonS→aSb∣ϵ(B)E→E+E∣E∗E∣idE \rightarrow E+E|E * E| i dE→E+E∣E∗E∣id(C)S→aS∣Sa∣ϵS \rightarrow a S|S a| \epsilonS→aS∣Sa∣ϵ(D)S→aS∣ϵS \rightarrow a S \mid \epsilonS→aS∣ϵSign in to save attempts.Show answer← PreviousNext →SolutionsDiscussionLoading…Sign in with Google