Regular Languages questions — page 1 of 3

Q26

GATE CS 2026 CS-1Regular LanguagesMSQ1 mark
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 MM?
More than one option can be correct.
Show answer without attempting

Answer: B, D

Q51

GATE CS 2026 CS-1Regular LanguagesMSQ2 marks
Let L1L_1 and L2L_2 be two languages over a finite alphabet, such that L1∩L2L_1 \cap L_2 and L2L_2 are regular languages.

Which of the following statements is/are always true?
More than one option can be correct.
Show answer without attempting

Answer: C

Q47

GATE CS 2026 CS-2Regular LanguagesMSQ2 marks
Consider the following two finite automata D1D_1 and D2D_2.

Which of the following statements is/are true?
Question figure
More than one option can be correct.
Show answer without attempting

Answer: C, D

Q28

GATE CS 2025 CS-1Regular LanguagesMSQ1 mark
A regular language LL is accepted by a non-deterministic finite automaton (NFA) with nn states. Which of the following statement(s) is/are FALSE?
More than one option can be correct.
Show answer without attempting

Answer: D

Q44

GATE CS 2025 CS-1Regular LanguagesMCQ2 marks−2/3 if wrong
Consider the following two languages over the alphabet \{a, b\}:
L1={αβα∣α∈{a,b}+ AND β∈{a,b}+}L_1 = \{ \alpha\beta\alpha \mid \alpha \in \{a, b\}^+ \text{ AND } \beta \in \{a, b\}^+ \}
L2={αβα∣α∈{a}+ AND β∈{a,b}+}L_2 = \{ \alpha\beta\alpha \mid \alpha \in \{a\}^+ \text{ AND } \beta \in \{a, b\}^+ \}
Which ONE of the following statements is CORRECT?
Show answer without attempting

Answer: C

Q50

GATE CS 2025 CS-1Regular LanguagesMSQ2 marks
Consider the following deterministic finite automaton (DFA) defined over the alphabet, Σ={a,b}\Sigma = \{a, b\}. Identify which of the following language(s) is/are accepted by the given DFA.
Question figure
More than one option can be correct.
Show answer without attempting

Answer: C

Q59

GATE CS 2025 CS-1Regular LanguagesNAT2 marks
Consider a finite state machine (FSM) with one input XX and one output ff, represented by the given state transition table. The minimum number of states required to realize this FSM is ________. (Answer in integer)
Question figure
Show answer without attempting

Answer: 5

Q52

GATE CS 2025 CS-2Regular LanguagesMSQ2 marks
Let Σ={a,b,c}\Sigma = \{a, b, c\}. For x∈Σ∗x \in \Sigma^*, and α∈Σ\alpha \in \Sigma, let #α(x)\#_\alpha(x) denote the number of occurrences of α\alpha in xx.

Which one or more of the following option(s) define(s) regular language(s)?
More than one option can be correct.
Show answer without attempting

Answer: A, C

Q60

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

For example, prod(124)=(1×2×4)(mod7)=1prod(124) = (1 \times 2 \times 4) \pmod 7 = 1.

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

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

Answer: 6

Q23

GATE CS 2024 CS-1Regular LanguagesMSQ1 mark
Let L1,L2L_1, L_2 be two regular languages and L3L_3 a language which is not regular. Which of the following statements is/are always TRUE?
More than one option can be correct.
Show answer without attempting

Answer: C, D

Q50

GATE CS 2024 CS-1Regular LanguagesMSQ2 marks
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's in ww and n1(w)n_1(w) be the number of 1′s1's in ww.
Which of the following statements is/are FALSE?
Question figure
More than one option can be correct.
Show answer without attempting

Answer: B, C

Q61

GATE CS 2024 CS-1Regular LanguagesNAT2 marks
Consider the following two regular expressions over the alphabet \{0,1\}:
r=0∗+1∗r = 0^* + 1^*
s=01∗+10∗s = 01^* + 10^*
The total number of strings of length less than or equal to 5, which are neither in rr nor in ss, is _________
Show answer without attempting

Answer: 44

Q22

GATE CS 2024 CS-2Regular LanguagesMCQ1 mark−1/3 if wrong
Which one of the following regular expressions is equivalent to the language accepted by the DFA given below?
Question figure
Show answer without attempting

Answer: A

Q41

GATE CS 2024 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Let MM be the 5-state NFA with ϵ\epsilon-transitions shown in the diagram below.

Which one of the following regular expressions represents the language accepted by MM ?
Question figure
Show answer without attempting

Answer: B

Q62

GATE CS 2024 CS-2Regular LanguagesNAT2 marks
Let L1L_1 be the language represented by the regular expression b∗ab∗(ab∗ab∗)∗b^*ab^*(ab^*ab^*)^* and L2={w∈(a+b)∗∣∣w∣≤4}L_2 = \{ w \in (a + b)^* \mid |w| \le 4\}, where ∣w∣|w| denotes the length of string ww. The number of strings in L2L_2 which are also in L1L_1 is ___________
Show answer without attempting

Answer: 15

Q14

GATE CS 2023 CSRegular LanguagesMCQ1 mark−1/3 if wrong
Consider the Deterministic Finite-state Automaton (DFA) A\mathcal{A} shown below. The DFA runs on the alphabet {0,1}\{0, 1\}, and has the set of states {s,p,q,r}\{s, p, q, r\}, with ss being the start state and pp being the only final state.

Which one of the following regular expressions correctly describes the language accepted by A\mathcal{A}?
Question figure
Show answer without attempting

Answer: C

Q24

GATE CS 2023 CSRegular LanguagesMSQ1 mark
Which of the following statements is/are CORRECT?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D

Q63

GATE CS 2023 CSRegular LanguagesNAT2 marks
Consider the language LL over the alphabet {0,1}\{0, 1\}, given below:
L={w∈{0,1}∗∣w does not contain three or more consecutive 1’s}.L = \{w \in \{0, 1\}^* \mid w \text{ does not contain three or more consecutive 1's}\}.
The minimum number of states in a Deterministic Finite-State Automaton (DFA) for LL is ____________.
Show answer without attempting

Answer: 4

Q12

GATE CS 2022 CSRegular LanguagesMCQ1 mark−1/3 if wrong
Which one of the following regular expressions correctly represents the language of the finite automaton given below?
Question figure
Show answer without attempting

Answer: D

Q38

GATE CS 2021 CS-1Regular LanguagesMCQ2 marks−2/3 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?
Show answer without attempting

Answer: D

0/200 correct0 marks

Related topics in Theory of Computation