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 :
- T= ( ,a,b,),+,*
- T= ( ,a,b,),+,*,c
- T= a,b,c
- None of the above mentioned
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
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)
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.