Regular Languages and Pumping Lemma questions

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

0/20 correct0 marks

Related topics in Regular Languages