

MCQOPTIONS
Saved Bookmarks
1. |
Consider the CFG with {S,A,B) as the non-terminal alphabet, {a,b) as the terminal alphabet, S as the start symbol and the following set of production rulesS --> aB S --> bAB --> b A --> aB --> bS A --> aSB --> aBB A --> bAAWhich of the following strings is generated by the grammar? |
A. | aaaabb |
B. | aabbbb |
C. | aabbab |
D. | abbbba |
Answer» D. abbbba | |