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

If L = {ab}, which string is in L?

If L = {ab}, which string is in L*?

  1. A.aab
  2. B.abab
  3. C.ba
  4. D.aba
Answer & explanation

Correct answer: abab

L* contains ε, ab, abab, ababab, …

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 →