Wednesday 3 June 2020

UGC NET Computer Science December 2019 | Question 97

Question 97
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?
  1. (1) only S1 and S2
  2. (2) only S1 and S3
  3. (3) only S2 and S3
  4. (4) S1, S2, and S3
Answer : (4) S1, S2, and S3

Explanation
S1 is correct because L2 means L.L i.e resulting language will be L2 = {anbnanbn | n ≥ 0 which is a context free language.

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

PreviousNext
UGC NET CS December 2019 - Question 96UGC NET CS December 2019 - Question 98

No comments:

Post a Comment

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts