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):

  1. ::= aS | T
  2. ::= bT | U
  3. ::= cU |
  1. Which of the following strings is generated by the grammar G?
    1. aba
    2. bab
    3. (c) ca

(d) ccc

  1. Which of the following is a derivation of bbc in the grammar G?
    1. S T U bU bbU bbU bbc
    2. S bT bbT bbU bbcU bbc
    3. S T bT bbT bbU bbcU bbc
    4. S T bT bTbT bbT bbU bbcU bbc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!