1.

Which of the following String can be obtained by the language L = {ai b2i / i >=1}?(a) aaabbbbbb(b) aabbb(c) abbabbba(d) aaaabbbabbThe question was posed to me in examination.Question is taken from Regular Grammar in portion Contextfree Grammar and Syntax Analysis of Compiler

Answer» CORRECT choice is (a) aaabbbbbb

To explain I would say: Above PRODUCTION RULE gives SUPPOSE if 3 a’s the CORRESPONDING b’s are 6 b’s.


Discussion

No Comment Found

Related InterviewSolutions