Consider the context-free grammar G below. Here S is the starting non-terminal symbol, while a and b are terminal symbols.
S → aaSb | T
T → Tb | a
Which of the following statements is true about the language L(G) generated by G?
- (A)
aabbaabb belongs to L(G) but aabb does not
- (B)
aaaaabbb belongs to L(G) but aaaabb does not
- (C)
aaaabb belongs to L(G) but aabbaabb does not
- (D)
aaabb belongs to L(G) but aaaaabbb does not
