StreakPeaked· Practice

ExamsGATETechnical

Consider the languages L1 = {ε} and L2 = {a}. Which one of the following represents L1 ∪ L2 ?

  1. {ε}
  2. Φ
  3. a*
  4. {ε, 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 →