MCQ
Q.
Consider the following grammars G1 and G2 respectively. Grammar - G1:
A1 ? A2A3
A2 ? A3A1 | b
A3 ? A1A1 | aGrammar - G2:S ? AA | 0
A ? SS | 1Consider the following statements regarding above grammars: (I): This grammar is not left recursive and equivalent to grammar - G1:A1 ? A2A3
A2 ? A3A1 | b
A3 ? a | bA3A1 | aK | bA3A1K
k ? A1A3A1 | A1A3A1K(II): This grammar is not left recursive and equivalent to grammar - G2:S ? A A | 0
A ? 0S | 1 | 0SK | 1K
K ? AS | ASK
Correct Answer: C
