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

Which regex describes binary strings ending in 01?

Which regex describes binary strings ending in 01?

  1. A.01(0+1)*
  2. B.(0+1)*01
  3. C.(01)*
  4. D.01
Answer & explanation

Correct answer: (0+1)*01

Any prefix followed by 01.

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 →