Exam-style question
Try this first
Which string is recognised by the regular expression ab+?.
- A.a
- B.abb
- C.baa
- D.b
Model answer
What a good answer should say
- abb
Explanation
Why this works
The expression begins with a and then requires one or more repetitions of b. Therefore, abb is recognised.
Common mistake
No common mistake is linked to this question yet.
