logo

AQA A-Level Computer Science practice

A Turing machine starts in q0 with its head on the first symbol of the tape. The tape initially contains 11 followed by blank squares. Its rules are: δ(q0, 1) = (q0, 1, R) and δ(q0, blank) = (qh, 1, L). What is on the first three tape squares when the machine halts?

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 Turing machine starts in q0 with its head on the first symbol of the tape. The tape initially contains 11 followed by blank squares. Its rules are: δ(q0, 1) = (q0, 1, R) and δ(q0, blank) = (qh, 1, L). What is on the first three tape squares when the machine halts?.

  1. A.110
  2. B.111
  3. C.011
  4. D.The tape is unchanged as 11 followed by a blank

Answer and explanation

Concise answer

111

Why this is correct

The machine moves right over both existing 1 symbols. When it reaches the blank third square, it writes 1, moves left and enters qh. The first three squares therefore contain 111.

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