ITPEC FE Morning April 2021 Question 5

Source exam: ITPEC FE Morning April 2021Topic: Basic Theory & Math

ITPEC FE Morning April 2021 — Question 5 of 80

State transition table — trace each input through the automaton to find which string reaches the failure state.

Transition table (A = initial, E = failure):

BlankNumberSignRadixOther
AABCDE
BABEDE
CEBEDE
DAEEEE

Trace 12.2:
- 1 (Number): A → B

- 2 (Number): B → B

- . (Radix point): B → D

- 2 (Number): D → E ← failure

Why not others:
- (a) +0010: A → C → B → B → B → B — ends in B

- (b) −1: A → C → B — ends in B

- (d) 9.△: A → B → D → A — ends in A

Key rule: State D (after radix point) transitions to E on Number input — the automaton rejects fractional digits after a decimal point.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

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.