Computer Science EngineeringModerate

The regular expression (a+b)* over the alphabet {a, b} denotes

  1. A. only strings of a's
  2. B. only strings of b's
  3. C. strings of even length
  4. D. all strings over {a, b} including the empty string

Correct answer: D. all strings over {a, b} including the empty string

The Kleene star of (a+b) allows any sequence of a's and b's, including the empty sequence.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic