Question: Exercise 9 (Multiple Choice) . Consider the grammar G (note that stands for the empty string): ::= a S | T ::= b T |
Exercise 9 (Multiple Choice). Consider the grammar G (note that stands for the empty string):
- ::= aS | T
- ::= bT | U
- ::= cU |
- Which of the following strings is generated by the grammar G?
- aba
- bab
- (c) ca
(d) ccc
- Which of the following is a derivation of bbc in the grammar G?
- S T U bU bbU bbU bbc
- S bT bbT bbU bbcU bbc
- S T bT bbT bbU bbcU bbc
- S T bT bTbT bbT bbU bbcU bbc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
