1.

Grammars that can be translated to DFAs is __________(a) Left linear grammar(b) Right linear grammar(c) Generic grammar(d) All of the mentionedThis question was posed to me during an internship interview.This intriguing question comes from Right Left Linear Grammar topic in chapter Contextfree Grammar and Syntax Analysis of Compiler

Answer»

Correct option is (B) Right LINEAR GRAMMAR

To explain I would SAY: Right Linear grammar can be TRANSLATE to DFA.



Discussion

No Comment Found

Related InterviewSolutions