Questions: Regular Expressions (Formal Language Theory)

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Which of the following languages CANNOT be described by any formal regular expression?

AAll binary strings containing at least one '1'
BAll strings over {a, b} where every 'a' is immediately followed by a 'b'
CAll strings of the form aⁿbⁿ for n ≥ 0 (equal numbers of a's then b's)
DAll strings over {0, 1} that end in '00'
Question 2 Multiple Choice

What language does the regular expression ab* denote?

AZero or more repetitions of the string 'ab'
BThe string 'a' followed by zero or more 'b's
CEither 'a' or zero or more 'b's
DOne or more 'b's, optionally preceded by 'a'
Question 3 True / False

The regular expressions (ab)* and ab* describe the same language over the alphabet {a, b}.

TTrue
FFalse
Question 4 True / False

Any language accepted by a nondeterministic finite automaton (NFA) can be described by a formal regular expression using only union, concatenation, and Kleene star.

TTrue
FFalse
Question 5 Short Answer

Formal regular expressions use only three operations — union, concatenation, and Kleene star. Why does this minimal set describe exactly the same languages that finite automata can recognize?

Think about your answer, then reveal below.