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

Using the precedence rules, how is ab + c read?

Using the precedence rules, how is ab* + c read?

  1. A.(ab)* + c
  2. B.(a(b*)) + c
  3. C.a(b* + c)
  4. D.((ab) + c)*
Answer & explanation

Correct answer: (a(b*)) + c

Star binds tightest, then concatenation, then union.

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 →