Regular Languages and Pumping Lemma questions

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

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

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

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

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

Q36

GATE CS 2021 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Consider the following two statements about regular languages:
S1S_1: Every infinite regular language contains an undecidable language as a subset.
S2S_2: Every finite language is regular.
Which one of the following choices is correct?
Show answer without attempting

Answer: C

Q8

GATE CS 2020 CSRegular LanguagesMCQ1 mark−1/3 if wrong
Consider the following statements.

I. If L1∪L2L_1 \cup L_2 is regular, then both L1L_1 and L2L_2 must be regular.
II. The class of regular languages is closed under infinite union.

Which of the above statements is/are TRUE?
Show answer without attempting

Answer: D

Q7

GATE CS 2019 CSRegular LanguagesMCQ1 mark−1/3 if wrong
If LL is a regular language over Σ={a,b}\Sigma = \{a, b\}, which one of the following languages is NOT regular?
Show answer without attempting

Answer: B

Q15

GATE CS 2019 CSRegular LanguagesMCQ1 mark−1/3 if wrong
For Σ={a,b}\Sigma = \{a, b\}, let us consider the regular language L={x∣x=a2+3k or x=b10+12k,k≥0}L = \{x \mid x = a^{2+3k} \text{ or } x = b^{10+12k}, k \ge 0\}. Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for LL?
Show answer without attempting

Answer: D

Q40

GATE CS 2017 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Consider the following languages.

L1={ap∣p is a prime number}L_1 = \{a^p \mid p \text{ is a prime number}\}
L2={anbmc2m∣n≥0,m≥0}L_2 = \{a^n b^m c^{2m} \mid n \ge 0, m \ge 0\}
L3={anbnc2n∣n≥0}L_3 = \{a^n b^n c^{2n} \mid n \ge 0\}
L4={anbn∣n≥1}L_4 = \{a^n b^n \mid n \ge 1\}

Which of the following are CORRECT?

I. L1L_1 is context-free but not regular.
II. L2L_2 is not context-free.
III. L3L_3 is not context-free but recursive.
IV. L4L_4 is deterministic context-free.
Show answer without attempting

Answer: D

Q46

GATE CS 2015 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Which of the following languages is/are regular?

L1L_1: {wxwR∣w,x∈{a,b}∗ and ∣w∣,∣x∣>0}\{wxw^R \mid w, x \in \{a, b\}^* \text{ and } |w|, |x| > 0\}, wRw^R is the reverse of string ww
L2L_2: {anbm∣m≠n and m,n≥0}\{a^n b^m \mid m \neq n \text{ and } m, n \geq 0\}
L3L_3: {apbqcr∣p,q,r≥0}\{a^p b^q c^r \mid p, q, r \geq 0\}
Show answer without attempting

Answer: A

Q15

GATE CS 2014 CS-2Regular LanguagesMCQ1 mark−1/3 if wrong
If L1={an∣n≥0}L_1 = \{a^n \mid n \geq 0\} and L2={bn∣n≥0}L_2 = \{b^n \mid n \geq 0\}, consider

(I) L1⋅L2L_1 \cdot L_2 is a regular language
(II) L1⋅L2={anbn∣n≥0}L_1 \cdot L_2 = \{a^n b^n \mid n \geq 0\}

Which one of the following is CORRECT?
Show answer without attempting

Answer: A

Q15

GATE CS 2014 CS-1Regular LanguagesMCQ1 mark−1/3 if wrong
Which one of the following is TRUE?
Show answer without attempting

Answer: C

0/130 correct0 marks

Related topics in Regular Languages