1.

A grammar G=(V, T, P, S) is __________ if every production taken one of the two forms:B->aCB->a(a) Ambiguous(b) Regular(c) Non Regular(d) None of the mentionedThis question was posed to me during a job interview.This intriguing question comes from Sentential Forms topic in portion Context Free Grammars and Languages of Automata Theory

Answer»

Right option is (b) Regular

The explanation is: The following FORMAT of GRAMMAR is of Regular grammar and is a part of Context FREE grammar i.e. like a specific form WHOSE FINITE automata can be generated.



Discussion

No Comment Found

Related InterviewSolutions