logo

AQA A-Level Computer Science practice

A Mealy machine starts in state A. Its transitions are A --x/1--> B, B --y/0--> A, and A --y/0--> A. What output is produced when the input sequence is xy?

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

A Mealy machine starts in state A. Its transitions are A --x/1--> B, B --y/0--> A, and A --y/0--> A. What output is produced when the input sequence is xy?.

  1. A.00
  2. B.01
  3. C.10
  4. D.11

Answer and explanation

Concise answer

01

Why this is correct

Starting in A, input x follows A to B and produces 1. In B, input y follows B to A and produces 0. The output sequence is therefore 10, not 01.

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