1.

A language is regular if and only if?(a) Accepted by DFA(b) Accepted by PDA(c) Accepted by LBA(d) Accepted by Turing machineI had been asked this question in an online interview.Origin of the question is Regular Grammar in chapter Contextfree Grammar and Syntax Analysis of Compiler

Answer»

The CORRECT answer is (a) ACCEPTED by DFA

To explain: All of above machine can ACCEPT regular language but all STRING accepted by machine is regular only for DFA.



Discussion

No Comment Found

Related InterviewSolutions