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

Quiz: Regular Expressions · Question 2 of 10

What does ab mean?

What does ab* mean?

  1. A.(ab)*
  2. B.a followed by zero or more b's
  3. C.zero or more a's followed by b
  4. D.a or b repeated
Answer & explanation

Correct answer: a followed by zero or more b's

Star binds tighter than concatenation.

Can you get the rest right without peeking?

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

Start the quiz →