logo

AQA A-Level Computer Science practice

A transition function contains the rule δ(q0, 1) = (q1, 0, R). What does this rule specify?

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

At a glance

MCQ

Type

practice

Style

Topic

A model of computation

Exam-style question

Try this first

A transition function contains the rule δ(q0, 1) = (q1, 0, R). What does this rule specify?.

  1. A.If the machine is in q0 and reads 1, it changes to q1, writes 0 and moves right
  2. B.If the machine is in q1 and reads 0, it changes to q0, writes 1 and moves left
  3. C.If the machine is in q0 and reads 0, it changes to q1, writes 1 and moves right
  4. D.If the machine is in q1 and reads 1, it changes to q0, writes 0 and moves left

Answer and explanation

Concise answer

If the machine is in q0 and reads 1, it changes to q1, writes 0 and moves right

Why this is correct

The first two values identify the current state and symbol read. The three values on the right specify the new state, symbol written and direction of movement.

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