🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: TOC Basics: all 10 questions

Quiz: TOC Basics · Question 7 of 10

Which statement about Σ and Σ⁺ is correct?

Which statement about Σ* and Σ⁺ is correct?

  1. A.Σ⁺ contains ε but Σ* does not
  2. B.Σ* contains ε, and Σ⁺ is Σ* without ε
  3. C.Both are finite sets
  4. D.They are always equal
Answer & explanation

Correct answer: Σ* contains ε, and Σ⁺ is Σ* without ε

Σ* is all strings including the empty one; Σ⁺ is all non-empty strings.

Can you get the rest right without peeking?

Take the timed Quiz: TOC Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →