Finite state machine can recognize language generated by __________.

2017

Finite state machine can recognize language generated by __________.

Answer: C. Only regular grammarAnswer: Only regular grammar. Explanation: Finite state machines (deterministic or nondeterministic) recognize exactly the class of regular languages…

  1. A.

    Only context free grammar

  2. B.

    Only context sensitive grammar

  3. C.

    Only regular grammar

  4. D.

    any unambiguous grammar

Attempted by 291 students.

Show answer & explanation

Correct answer: C

Answer: Only regular grammar.

Explanation:

  • Finite state machines (deterministic or nondeterministic) recognize exactly the class of regular languages generated by regular grammars.

  • Regular grammars, regular expressions, and finite automata are equivalent formalisms for the same class of languages.

  • Context-free languages are more expressive (for example, {a^n b^n | n ≥ 0}) and require a pushdown automaton rather than a finite state machine.

  • Context-sensitive languages are yet more powerful and typically need a linear bounded automaton to be recognized.

  • An unambiguous grammar is a property of a grammar (unique parse trees) and does not guarantee the generated language is regular.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…