logo

AQA A-Level Computer Science practice

Draw or describe a state transition diagram for an FSM with no output that has states A, B and C and the following transition table: from A, input 0 leads to B and input 1 leads to C; from B, input 0 leads to B and input 1 leads to A; from C, input 0 leads to A and input 1 leads to C. Include every transition and explain how the diagram represents the table.

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

At a glance

Question

Type

practice

Style

Topic

Regular languages

Exam-style question

Try this first

Draw or describe a state transition diagram for an FSM with no output that has states A, B and C and the following transition table: from A, input 0 leads to B and input 1 leads to C; from B, input 0 leads to B and input 1 leads to A; from C, input 0 leads to A and input 1 leads to C. Include every transition and explain how the diagram represents the table.

Answer and explanation

Concise answer

A --0--> B; A --1--> C; B --0--> B; B --1--> A; C --0--> A; C --1--> C.

Why this is correct

A complete answer includes two outgoing transitions for each state, one for each input. Self-loops are required for B on input 0 and C on input 1. The labels identify inputs only, which is appropriate for an FSM with no output.

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