ITPEC FE Subject A October 2025 Question 4

Topic: Basic TheoryAlso asked in November 2021

For an automaton with input and output symbols {0, 1} and a state transition diagram shown below, which of the following is the output string for the input string 0011001110? Here, S1 represents the initial state, and the label x/y on each arc indicates that if x is an input, then y is the corresponding output at the state transition.

S₁S₂S₃0/01/00/01/11/10/0

Explanation

0001000110 — trace the input one symbol at a time; the arc taken gives both the output and the next state.

Arcs in the diagram:

StateInput 0Input 1
S10/0, stay in S11/0, go to S2
S20/0, back to S11/1, go to S3
S30/0, back to S11/1, stay in S3

Trace of 0011001110 from S1:

StepInputMoveOutput
10S1 → S10
20S1 → S10
31S1 → S20
41S2 → S31
50S3 → S10
60S1 → S10
71S1 → S20
81S2 → S31
91S3 → S31
100S3 → S10

Answer (a)

Why not others:

  • •(b) 0001001110 — stays in S3 on the 0s at steps 5 and 6, so step 7 outputs 1; the 0/0 arc from S3 returns to S1, where a 1 outputs 0
  • •(c) 0010001000 — outputs 1 at step 3, but that 1 is read in S1, whose arc is 1/0; it also outputs 0 at steps 4, 8 and 9, where the 1/1 arcs apply
  • •(d) 0011111110 — outputs 1 at steps 5 and 6, whose inputs are 0, yet every 0 arc in the diagram outputs 0

Key rule: In an automaton labelled x/y, the output belongs to the arc: for each symbol, find the arc leaving the current state with that input, write its output, then move to the arc's target state.

Basic Theory · AI-written, may contain errors

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.