Which regular expressions belong to R where R=ab*cb*R=ab*+cb*?
- ab
- abb
- cb
- All of these
Explanation
Now let's evaluate the options:
(A) ab: This string matches (since allows for one 'b'). So, this belongs to
(B) abb: This string also matches (since allows for two 'b's). So, this belongs to .
(C) cb: This string matches (since allows for one 'b'). So, this belongs to .
(D) All of these: Since all the previous options (A, B, C) belong to , this is correct.
Related MCQs
- 12
- 14
- 16
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 0°
- 45°
- 90°
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- π/4
- π/2
- π
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- sin(x)
- −sin(x)
- −cos(x)
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 2
- 4
- 6
- None of these