logo

Question detail

Which statement correctly describes the relationship between regular expressions and finite state machines (FSMs)?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Regular languages

Exam-style question

Try this first

Which statement correctly describes the relationship between regular expressions and finite state machines (FSMs)?.

  1. A.Every regular expression describes a language that no FSM can recognise.
  2. B.Regular expressions and FSMs are equivalent ways of defining a regular language.
  3. C.FSMs can describe only numerical languages, whereas regular expressions describe only text.
  4. D.A regular expression is a program that must be executed by an FSM.

Model answer

What a good answer should say

  • Regular expressions and FSMs are equivalent ways of defining a regular language.

Explanation

Why this works

The specification states that regular expressions and FSMs are equivalent ways of defining a regular language. A regular expression can be written for the same language as a given FSM, and vice versa.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.