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

Arden's theorem gives the solution of R = Q + RP (when P does not contain ε). What is it?

Arden's theorem gives the solution of R = Q + RP (when P does not contain ε). What is it?

  1. A.R = PQ*
  2. B.R = Q*P
  3. C.R = QP*
  4. D.R = (Q + P)*
Answer & explanation

Correct answer: R = QP*

R starts with Q and can be followed by any number of Ps, which is how DFA-to-regex equations are solved.

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 →