Menu

Regular and context free languages Questions

MCQ
31.
Identify the language generated by the following grammar

S -> AB
 A -> aAb|?
 B -> bB| b 
forum Discussion
MCQ
32.
Let L1 be regular language, L2 be a deterministic context free language and L3 a recursively enumerable language, but not recursive. Which one of the following statements is false?
forum Discussion
MCQ
33.
Which of the following are context free?

A = {anbnambm | m, n>=0}
B = {ambnambn | m, n>=0}
C = {ambn | m?2n,m, n>=0}
forum Discussion
MCQ
34.
The language L = {aib ci ? i >= 0} over the alphabet {a, b, c} is:
forum Discussion
MCQ
35.
Context free grammar is not closed under:
forum Discussion
MCQ
36.
Consider the following languages: L1 = {am bn ? m ? n} L2 = {am bn ? m = 2n+1} L3 = {am bm ? m ? 2n} Which one of the following statement is correct ?
forum Discussion
MCQ
37.
Which one of the following is FALSE?
forum Discussion
MCQ
38.
Consider the following statements about the context free grammar G = {S-->SS , S-->ab , S-->ba , S-->^} I. G is ambiguous II. G produces all strings with equal number of a
forum Discussion
MCQ
39.
Consider the languages L1 = ? and L2 = {1}. Which one of the following represents L*1? L*1 L*2 ?
forum Discussion
MCQ
40.
Given the following statements : (A) A class of languages that is closed under union and complementation has to be closed under intersection. (B) A class of languages that is closed under union and intersection has to be closed under complementation. Which of the following options is correct ?
forum Discussion