Which of the following is the regular expression to represent all the binary strings with odd number of 1's?

Which of the following is the regular expression to represent all the binary strings with odd number of 1's?

  1. a) 0*(10*10*)*10*
  2. b) 0*(10*1)*10*
  3. c) (0*10*)*0*10*
  4. d) (0*10*)*1(0*10*)*

From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 24 of 86.

More from this paper