Lesson 4.4.2.1
4.4.2.1 Finite state machines Quiz: AQA Computer Science, Unit 4
20 questions
In partnership with Revision Ninja
Lesson 4.4.2.1, Finite state machines: 20 multiple choice questions for the AQA Computer Science (7517), Unit 4: Theory of computation, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
What defines the movement from one state to another in a finite state machine?
- A loop
- An output
- A variable
- A transition
-
What two factors determine the next state in a state transition table?
- State and input
- State and output
- Input and output
- Start and finish
-
What type of finite state machine produces outputs on its state transitions?
- A pushdown automaton
- A Turing machine
- A Mealy machine
- A Moore machine
-
What is the main purpose of an FSM without output?
- Generating output strings
- Storing unlimited data
- Executing recursive functions
- Recognising languages
-
How is the start state indicated in a state transition diagram?
- Bold outline
- Unattached arrow
- Double circle
- Dashed circle
-
How is an accepting state represented in a state transition diagram?
- Dashed circle
- Single square
- Double circle
- Unattached arrow
-
A machine accepts strings containing an even number of 1s, with its start state also accepting. Which string is accepted?
- 10101
- 1001
- 1
- 100
-
In an even parity FSM, what state transition occurs from the even state on input 0?
- Move to odd
- Move to start
- Loop to even
- Transition to accept
-
A Mealy machine outputs 1 when a 1 follows a 0. For the input sequence 0, 1, 1, 0, 1, what is the output sequence?
- 11011
- 01101
- 01001
- 00000
-
How many states does a Mealy machine need to detect a 1 that follows a 0?
- 3
- 1
- 2
- 4
-
An FSM tracks whether the last input was 0. What state is entered on receiving input 0?
- Last input 1
- Error state
- Start state
- Last input 0
-
A machine has states S1, S2 and S3, with S1 going to S2 on a, S2 going to S3 on b, and S3 accepting. Which string is accepted?
- abb
- a
- ba
- ab
-
What is the minimum number of states needed for a machine that accepts strings with an even number of 1s?
- 2
- 1
- 4
- 3
-
In a state transition diagram, what does a self-loop labelled 1 on state S mean?
- Output value 1
- Reset to start
- Stay in state S
- Move to state 1
-
Which string would be accepted by an FSM designed to recognise strings ending in 01?
- 11010
- 10100
- 11001
- 01110
-
A machine has 5 states and accepts 2 input symbols. In a complete deterministic transition table, how many transitions are listed?
- 5
- 25
- 7
- 10
-
What key advantage does a state transition table provide over a state diagram?
- Shows all transitions
- Faster execution speed
- Unlimited state memory
- Automatic output generation
-
An FSM counting even 1s processes input 1, 1, 1, 0. Which state does it end in?
- Even state
- Accepting state
- Start state
- Odd state
-
On what do outputs in a Mealy machine depend?
- State only
- Next state only
- State and input
- Input only
-
In a Mealy machine diagram, where is the output action specified?
- State node
- Start arrow
- Accepting double circle
- State transition arc
Related quizzes
- Problem-solving and algorithms Quiz · 4.4.1.1 · 20 questions
- Abstraction Quiz · 4.4.1.3 · 20 questions
- Problem reduction and decomposition Quiz · 4.4.1.8 · 20 questions
- Composition Quiz · 4.4.1.10 · 20 questions
- Automation Quiz · 4.4.1.11 · 20 questions
- Regular expressions Quiz · 4.4.2.3 · 20 questions
- Backus-Naur Form and syntax diagrams Quiz · 4.4.3.1 · 20 questions
- Comparing algorithms Quiz · 4.4.4.1 · 20 questions
- Order of complexity Quiz · 4.4.4.3 · 20 questions
- Limits of computation and computable problems Quiz · 4.4.4.4 · 20 questions