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
- All real numbers
- [0, π]
- [-1, 1]
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 180°
- 120°
- 90°
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 4 times
- 5 times
- 2 times
- None
اس سوال کو وضاحت کے ساتھ پڑھیں
- 90 degrees
- 180 degrees
- 270 degrees
- 360 degrees