A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. Given the following two languages :

L1={a^n b a^n|n>0}
L2={a^n b a^n b^n+1|n>0}

Which of the following is correct?
a. L1 is context free language and L2 is not context free language
b. L1 is not context free language and L2 is context free language
c. Both L1 and L2 are context free languages
d. Both L1 and L2 are not context free languages
Answer:L1 is context free language and L2 is not context free language
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: