Exam-style question
Try this first
Which string is recognised by the regular expression ab+?.
- A.a
- B.abb
- C.baa
- D.b
Answer and explanation
Concise answer
abb
Why this is correct
The expression begins with a and then requires one or more repetitions of b. Therefore, abb is recognised.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
