1.

Which of the following statement is correct?(a) All Regular grammar are context free but not vice versa(b) All context free grammar are regular grammar but not vice versa(c) Regular grammar and context free grammar are the same entity(d) None of the mentionedI had been asked this question in an internship interview.My enquiry is from Context Free Grammar-Derivations and Definitions in portion Context Free Grammars and Languages of Automata Theory

Answer» RIGHT answer is (a) All Regular grammar are context FREE but not vice versa

For explanation I WOULD say: Regular grammar is a SUBSET of context free grammar and thus all regular GRAMMARS are context free.


Discussion

No Comment Found

Related InterviewSolutions