1

S –> aSa| bSb| a| b ; The language generated by the above grammar over the alphabet {a,b} is the set of

Correct Answer: All odd length palindromes.

Make the most of this question

This page focuses on one Theory of Computation and Compiler Design question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

Theory of Computation and Compiler Design MCQ: S –> aSa| bSb| a| b ; The language generated by the above grammar over the alphabet {a,b} is the set of | Extra Education