Question 97
Explanation
Consider the following statements with respect to the language L = {anbn | n >= o}
S1: L2 is context free language
S2: Lk is conext-free language for any given k >= 1
S3: L' and L* are context free languages
Which one of the following is correct?
Answer : (4) S1, S2, and S3 S1: L2 is context free language
S2: Lk is conext-free language for any given k >= 1
S3: L' and L* are context free languages
Which one of the following is correct?
Explanation
Previous | Next |
UGC NET CS December 2019 - Question 96 | UGC NET CS December 2019 - Question 98 |
Since context free languages are closed under kleen closure so Lk is context-free language for any given k ≥ 1. Hence S2 is correct.
Complement of given language L will be a language accepting all strings other than {anbn | n ≥ 0}. And we can easily design a pushdown automata which rejects {anbn | n ≥ 0} and accepts all string other than this. And as we know, context free languages are closed under kleen closure. Hence S3 is correct.
So, option 4 is correct answer