Aptitude | GATE IT 2006 | Question 4
In the context-free grammar below, S is the start symbol, a and b are terminals, and ϵ denotes the empty string
S → aSa | bSb | a | b | ϵ
Which of the following strings is NOT generated by the grammar?
(A) aaaa
(B) baba
(C) abba
(D) babaaabab
Answer: (B)
Explanation:
The given Language is Palindrome.
A,C and D follow the language but baba is not a palindrome , so B is the answer
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- Aptitude | GATE IT 2006 | Question 9
- Aptitude | GATE IT 2006 | Question 7
- Aptitude | GATE IT 2006 | Question 3
- Aptitude | GATE IT 2006 | Question 5
- Aptitude | GATE IT 2006 | Question 2
- Aptitude | GATE IT 2006 | Question 1
- Aptitude | GATE IT 2006 | Question 7
- Aptitude | GATE IT 2006 | Question 8
- GATE | GATE IT 2006 | Question 59
- GATE | GATE IT 2006 | Question 61
- GATE | GATE IT 2006 | Question 60
- GATE | GATE IT 2006 | Question 11
- GATE | GATE IT 2006 | Question 12
- GATE | GATE IT 2006 | Question 13
- GATE | GATE IT 2006 | Question 14



