retagged by
288 views

1 Answer

0 votes
0 votes

Answer is D.

S-> (S (Since S-> (S )

S->(R (Since S-> R )

S->((R) (Since R-> (R) )

S->(()R() (Since R-> )R( )

S->(())R(() (Since R-> )R( )

S->(())(() (Since R-> ε )

So final answer is string (())(() , that is option D.

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
5 answers
2
User007 asked Oct 5, 2016
706 views
Consider the following CFG:E E*T/T+E/TT (T*F)/FF idWhich of the following strings are not generated by above CFG?A id+id+idB id∗id∗idC (id∗id∗id)D None of t...
0 votes
0 votes
1 answer
3
0 votes
0 votes
2 answers
4
atulcse asked Jan 16, 2022
907 views
Consider the following context-free grammar:Find the number of unique productions in {Goto (A → D.BC, B) U Goto (A → .DBC, D)}