Exams › GATE › Technical
Consider the languages L1 = {ε} and L2 = {a}. Which one of the following represents L1 ∪ L2 ?
- {ε}
- Φ
- a*
- {ε, a}
Correct answer: {ε, a}
Solution
The union of two sets includes all unique elements from both sets. Since L1 contains the empty string ε and L2 contains the string 'a', their union results in the set {ε, a}.
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →