Consider the following context-free grammars:
Which one of the following pairs of languages is generated by G1 and G2, respectively
In G2, either we can take S->aA or S->bB. So it must have atleast 1 a or 1 b.
So option D is correct.
Quiz of this Question