353 views
0 votes
0 votes

Question 1 >> Consider the following two languages:


Which of the following statement is true?
a. L1 is CSL and L2 is CFL but not CSL
b. Both L1 and L2 are CSL but not CFL
c. Both L1 and L2 are CSL but not CFL
d. Both L1 and L2 are CFL but not regular

The answer given is B) Both the language is CSL but not CFL, but I think it should be D) both language is CFL but not regular. is there something I am missing.

3 Answers

3 votes
3 votes
both languages have only single comparision ,hence both are cfl.

d is correct.

Related questions

1 votes
1 votes
2 answers
1
1 votes
1 votes
1 answer
4
Sahil1994 asked Dec 7, 2017
567 views
Hi mates,Please Identify Class of grammr with suitable Explanation,1) L={WXW,/ W,X{a,b}*}2) L={WXW,/ W,X{a,b}+}3) L={WXWY,/ W,X,Y{a,b}+}4)L={WXYW,/ W,X,Y{a,b}+}Thanks,