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

  • (A) All palindromes.
  • (B) All odd length palindromes.
  • (C) Strings that begin and end with the same symbol
  • (D) All even length palindromes.
πŸ’¬ Discuss
βœ… Correct Answer: (B) All odd length palindromes.

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
952
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate