Regular Language: GATE CS Previous Year Questions

Regular Language · Theory of Computation

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

MCQ 25 · MSQ 3 · NAT 11-mark 20 · 2-mark 9

2000Questions per year2026

Questions 1–5 of 29

Q1GATE 2026 (Session 1)2 marksMSQ
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?

One or more options are correct.

Q2GATE 2025 (Session 1)2 marksMCQ−0.67 if wrong
Consider the following two languages over the alphabet {a,b}\{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?

Q3GATE 2025 (Session 2)2 marksMSQ
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)?

One or more options are correct.

Q4GATE 2024 (Session 1)1 markMSQ
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?

One or more options are correct.

Q5GATE 2024 (Session 2)2 marksNAT
Let L1L_1 be the language represented by the regular expression b∗ab∗(ab∗ab∗)∗b^* a b^*\left(a b^* a b^*\right)^* and L2={w∈(a+b)∗∣∣w∣≤4}L_2=\left\{w \in(a+b)^* \mid |w| \leq 4\right\}, where ∣w∣|w| denotes the length of string ww. The number of strings in L2L_2 which are also in L1L_1 is ___

Keep practising

Topics in Theory of Computation

All CS topics ›