Which regular expressions belong to R where R=ab*cb*R=ab*+cb*?
PPSC 5 Years Past Papers Subject Wise (Solved with Details) / All - Multiple-choice practice
- A. ab
- B. All of these
- C. cb
- D. abb
Correct answer
All of these
Explanation
Explanation Now let's evaluate the options: (A) ab: T his string matches ab^* a b ∗ (since b^* b ∗ allows for one 'b'). So, this belongs to R (B) abb: This string also matches a b ∗ (since b^* b ∗ allows for two 'b's). So, this belongs to R . (C) cb: This string matches c b ∗ (since b^* b ∗ allows for one 'b'). So, this belongs to R . (D) All of these: Since all the previous options (A, B, C) belong to R R , this is correct.
Continue with All MCQs, explore all PPSC 5 Years Past Papers Subject Wise (Solved with Details) topics, or try the All practice quiz.
More All questions
Found an error? Report a correction with this page URL and a supporting source.