Computer Science And Engineering

Computer Science And EngineeringTheory of Computation / FLATMultiple Choice (MCQ)2 Marks
Q1.

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?

A
Both L1L_1 and L2L_2 are regular languages.
B
L1L_1 is a regular language but L2L_2 is not a regular language.
C
L1L_1 is not a regular language but L2L_2 is a regular language.
D
Neither L1L_1 nor L2L_2 is a regular language.
NEXT NODE