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
دیئے گئے نمبر کے مربع جڑ کا اخراج کیا ہے؟
- Binary operation
- Relation
- Unary operation
- Relation in some set
اس سوال کو وضاحت کے ساتھ پڑھیں
- 0 degree
- 10 degree
- 15 degree
- 20 degree
اس سوال کو وضاحت کے ساتھ پڑھیں
- 150°
- 165°
- 180°
- 175°
اس سوال کو وضاحت کے ساتھ پڑھیں
- 130°
- 120°
- 140°
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 2
- 3
- 1
- None of these