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
- 34/63 m
- 46/63 m
- 54/63 m
- 64/63 m
اس سوال کو وضاحت کے ساتھ پڑھیں
- 34
- 36
- 38
- 40
اس سوال کو وضاحت کے ساتھ پڑھیں
- All real numbers
- [0, π]
- [-1, 1]
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 180°
- 120°
- 90°
- None of these