Knowee
Questions
Features
Study Tools

S->(S) | aA | epsilon A-> A+B | a B-> B *C | b C -> c Options : T= ( ,a,b,),+,* T= ( ,a,b,),+,*,c T= a,b,c None of the above mentioned

Question

S->(S) | aA | epsilon

A-> A+B | a

B-> B *C | b

C -> c

Options :

  1. T= ( ,a,b,),+,*
  2. T= ( ,a,b,),+,*,c
  3. T= a,b,c
  4. None of the above mentioned
🧐 Not the exact question you are looking for?Go ask a question

Solution

The question seems to be asking for the terminal symbols (T) in the given grammar. Terminal symbols are the symbols of the language that is being defined by the grammar. They are the symbols that appear in the actual sentences of the language.

The grammar is defined as follows:

S->(S) | aA | epsilon A-> A+B | a B-> B *C | b C -> c

From this, we can see that the terminal symbols are: (, ), a, b, +, *, c.

So, the correct option is: T= ( ,a,b,),+,*,c

This problem has been solved

Similar Questions

S->(S) | aA | epsilon A-> A+B | a B-> B *C | b C -> c Options : T= ( ,a,b,),+,* T= ( ,a,b,),+,*,c T= a,b,c None of the above mentioned

Draw the composite table for the operation * defined by x*y=x,x, y  S  {a,b,c, d}.

Suppose A → xBz and B → y, then the simplified grammar would be:Select one:a. None of the mentionedb. A → xBz|xyzc. A → xyz d. A → xBz|B|y

Let R and S be relations on {a, b, c, d}, whereR = {(a, b), (a, d), (b, c), (c, c), (d, a)}andS = {(a, c), (b, d), (d, a)}.Then,| R o S | + | (S o R)^(-1) | =

What will be the output?>>>t=(1,2,4,3)>>>t[1:3]  (1, 2)(1, 2, 4)(2, 4) (2, 4, 3)

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.