1.

For S->0S1|e for ∑={0,1}*, which of the following is wrong for the language produced?(a) Non regular language(b) 0^n1^n | n>=0(c) 0^n1^n | n>=1(d) None of the mentionedThis question was addressed to me in a job interview.My question is based upon Context Free Grammar-Derivations and Definitions in chapter Context Free Grammars and Languages of Automata Theory

Answer»

Correct ANSWER is (d) None of the mentioned

The best I can EXPLAIN: L={e, 01, 0011, 000111, ……0^n1^n }. As epsilon is a part of the set, thus all the OPTIONS are correct IMPLYING none of them to be wrong.



Discussion

No Comment Found

Related InterviewSolutions