GATE | Gate IT 2008 | Question 75
A CFG G is given with the following productions where S is the start symbol, A is a non-terminal and a and b are terminals.
S→aS∣A
A→aAb∣bAa∣ϵ
Which of the following strings is generated by the grammar above?
(A) aabbaba
(B) aabaaba
(C) abababb
(D) aabbaab
Answer: (D)
Explanation: 
Quiz of this Question
Recommended Posts:
- GATE | Gate IT 2008 | Question 77
- GATE | Gate IT 2008 | Question 78
- GATE | Gate IT 2008 | Question 79
- GATE | Gate IT 2008 | Question 80
- GATE | Gate IT 2008 | Question 81
- GATE | Gate IT 2008 | Question 82
- GATE | GATE CS 2008 | Question 15
- GATE | GATE CS 2008 | Question 80
- GATE | Gate IT 2008 | Question 76
- GATE | Gate IT 2008 | Question 74
- GATE | Gate IT 2008 | Question 65
- GATE | Gate IT 2008 | Question 66
- GATE | Gate IT 2008 | Question 67
- GATE | Gate IT 2008 | Question 68
- GATE | Gate IT 2008 | Question 69



