Home › GATE CS › PYQs › Theory of Computation › Regular Expressions & Finite Automata

Regular Expressions & Finite Automata — GATE CS Previous Year Questions

Practise GATE CS previous year questions on Regular Expressions & Finite Automata in Theory of Computation (TOC). Filter by year, marks and question type.

Public question previews

  • Let M be a nondeterministic finite automaton (NFA) with 6 states over a finite alphabet. Which of the following options CANNOT be the number of states in the minimal deterministic finite automaton (DFA) that is equivalent to M ? (2026 · 1 mark · MSQ)
  • A regular language L is accepted by a non-deterministic finite automaton (NFA) with n states. Which of the following statement(s) is/are FALSE? (2025 · 1 mark · MSQ)
  • Let Σ = {a, b, c}. For x ∈ Σ*, and α ∈ Σ, let #α(x) denote the number of occurrences of α in x. Which one or more of the following option(s) define(s) regular language(s)? (2025 · 2 marks · MSQ)
  • Let Σ = {1,2,3,4}. For x ∈ Σ*, let prod(x) be the product of symbols in x modulo 7. We take prod(ε) = 1, where ε is the null string. For example, prod(124) = (1 × 2 × 4) mod 7 = 1. Define L = {x ∈ Σ* | prod(x) = 2}. The number of states in a minimum state DFA for L is ___________. (Answer in integer) (2025 · 2 marks · NAT)