🎙 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 2 of 10

What is the difference between ε and ∅?

What is the difference between ε and ∅?

  1. A.ε is the empty string; ∅ is the empty language containing no strings
  2. B.They are the same
  3. C.ε is a language; ∅ is a string
  4. D.∅ contains only ε
Answer & explanation

Correct answer: ε is the empty string; ∅ is the empty language containing no strings

{ε} is a language with one string (of length 0); ∅ has none.

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 →