logo

Question detail

Which string is recognised by the regular expression ab+?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Regular languages

Exam-style question

Try this first

Which string is recognised by the regular expression ab+?.

  1. A.a
  2. B.abb
  3. C.baa
  4. 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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.