logo

AQA A-Level Computer Science practice

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

Try the question first, then check the answer and practise the same topic again.

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.

Answer and explanation

Concise answer

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

Why this is correct

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.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions