Finite Automata: GATE CS Previous Year Questions

Finite Automata · Theory of Computation

62 questions · asked in 27 of 27 years (2000–2026)

MCQ 45 · MSQ 5 · NAT 121-mark 34 · 2-mark 28

2000Questions per year2026

Questions 6–10 of 62

Q6GATE 2025 (Session 2)2 marksNAT
Let Σ={1,2,3,4}\Sigma = \{1, 2, 3, 4\}. For x∈Σ∗x \in \Sigma^*, let prod(x)\text{prod}(x) be the product of symbols in xx modulo 7. We take prod(ϵ)=1\text{prod}(\epsilon) = 1, where ϵ\epsilon is the null string.

For example, prod(124)=(1×2×4)mod  7=1\text{prod}(124) = (1 \times 2 \times 4) \mod 7 = 1.

Define L={x∈Σ∗∣prod(x)=2}.L = \{x \in \Sigma^* \mid \text{prod}(x) = 2\}.

The number of states in a minimum state DFA for LL is ___________. (Answer in integer)

Q7GATE 2024 (Session 1)2 marksMSQ
Consider the 5 -state DFA MM accepting the language L(M)⊂(0+1)∗L(M) \subset(0+1)^* shown below. For any string w∈(0+1)∗w \in(0+1)^* let n0(w)n_0(w) be the number of 0′s0^{\prime} s in ww and n1(w)n_1(w) be the number of 1 's in ww.
1 2 3 4 5 0 1 0 1 1 0 1 0 0 1
Which of the following statements is/are FALSE?

One or more options are correct.

Q8GATE 20232 marksNAT
Consider the language L over the alphabet {0, 1}, given below:

L={w∈{0,1}∗∣w does not contain three or more consecutive 1’s}.L = \{w \in \{0, 1\}^* | w \text{ does not contain three or more consecutive 1's} \}.
The minimum number of states in a Deterministic Finite-State Automaton (DFA) for L is _____.

Q9GATE 20221 markMCQ−0.33 if wrong
Which one of the following regular expressions correctly represents the language of the finite automaton given below?
a b a b b a

Q10GATE 2021 (Session 1)2 marksMCQ−0.67 if wrong
Consider the following language:

L={w∈{0,1}∗∣w ends with the substring 011}L= \{ w \in \{0,1\}^* \mid w \text{ ends with the substring } 011 \}

Which one of the following deterministic finite automata accepts LL?
(A) start 0 1 0 0 1 1 1 0 (B) start 0 1 0 0 1 1 0,1 (C) start 0 1 0 0 1 1 1 0 (D) start 0 1 0 0 1 1 1 0

Keep practising

Topics in Theory of Computation

All CS topics ›