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
4) G4 = ({a, b, c}, { S , A, R, T }, S, { S → aS | aA ; A → bAc | ε})
Q: 08 of 15Choose the right set of terminals from the given production rules of grammar as:S->(S) | aA | epsilonA-> A+B | aB-> B *C | bC -> cOptions :T= ( ,a,b,),+,*T= ( ,a,b,),+,*,cT= a,b,cNone of the above mentioned
Given: ∑= {a, b}L= {xϵ∑*|x is a string combination}∑4 represents which among the following?ans.{aaaa, abab, ε, abaa, aabb}{aaa, aab, aba, bbb}{aa, ab, ba, bb}All of the mentioned Previous Marked for Review Next
Draw the composite table for the operation * defined by x*y=x,x, y S {a,b,c, d}.
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.