1.

Consider the following languages.L1 = {wxyx | w, x, y ϵ (0 + 1)+}L2 = {xy | x, y ϵ (a + b)*, |x| = |y|, x ≠ y}Which one of the following is TRUE?

A. L1 is regular and L2 is context-free.
B. L1 is context-free but not regular and L2 is context-free.
C. Neither L1 nor L2 is context-free.
D. L1 is context-free but L2 is not context-free
Answer» B. L1 is context-free but not regular and L2 is context-free.


Discussion

No Comment Found

Related MCQs