All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2022 (Shift 2)

Which of the following are correct for regular expressions? a. ∅ + L = L + ∅ = L b. εL = Lε = L c. ∅L = L∅ = ∅ d. ∅L = L∅ = L

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. a, b and c only

Explanation

∅ is the identity for union and the annihilator for concatenation; ε is the identity for concatenation. So a, b and c are correct and d is false.

More Theory of Computation and Compilers questions