NEW
Font size
WorksheetsCA-II_TOC_Gate
Total questions: 30
Worksheet time: 3600secs
Which of the following is not a Context-Free Grammar ?
anb4m Where mn ≥ 1
aibj Where mn i=2j+1
ann Where n ≥ 1
ambm+ncn Where mn ≥ 1
Which of the following RE are equivalent?
1. (00)* 2. (00)* ( ϵ +o)*
3. 0* 4. 0(00)*
1 and 2
2 and 3
2 and 4
3 and 4
How many states does Minimum DFA needs to construct a language where all string ending with "ab"
2
3
4
5
Which of the following statement is TRUE for language L ?
L is acceptable by Turing machine than it is not acceptable by PDA
L is acceptable by PDA than it is not acceptable by turning machine
L is acceptable by RE than it is not acceptable by CFG
L is accoetable by RG and CFG, cannot be acceptable by turning machine
Dp Np Df Nf are PDA, NPDA, DFA and NFA,respectively.
Which of the following statement is correct ?
Dp = Np
Df = Dp
Df = Nf
Np = Nf
RE= (01+11)*
How many states need to design a minimum DFA?
2
3
1
4
Which of the following statement is true ?
Containing aaa
any number of "a" followed by "b"
any number of "b" followed by "a"
Multiple of a where a mod 3 =0
Identify the language generated by the grammar
S-->XY
X-->aX/a
Y-->bY/b
anbm where mn≥0
bman where mn≥0
anbm where mn>0
anbm where m≥n
let L1 and L2 be context free language and regular language, respectively. Then which of the following statement is True
Compliment of L1 is not regular
Compliment of L2 is not regular
Compliment of L2 is regular
L1-L2 is not a context free
L1= S-->aSB/ab
L2= S--> Sab/ab
P:L1 is regular language
Q: L2 is context free language
Which of following statement true?
P true and Q False
Q true and P False
P true and Q True
P False and Q False
L1: { 0p1q0r, where p=q and pqr≥0 }
L2: 0p1q0r, where p=q =r, and pqr≥0
L1 is context free
L2 is context free
L2 is context free
L1 is not a context free
L is a language accepted by the turning machine. x is a string accepted by TM is a
Decidable problem
Undecidable problem
X can be accepted by CFG
X can be accepted by RG
A Grammer G is in Gribach Normal formal. A string "x" of length 5 is accepted by the G. How many step required to achieve the string
9
5
10
4
L1= anbm where n=m, nm>0
L2= anbm where nm>0
L= L1 U L2 is
L is regular grammar
L is regular but not context free
L is context free only
L is only accpeted by turing machine
Which of the problem is Undeciadable
Membership of CFG's
Ambiguity of Problem of CFGs
Membership of TM
Equivalance of finite state machines
Transition function δ of NFA i.e Q x Σ =
2Q
Q
2XQ
Q0
S-->aBCD
BCD--> DE
D-->aD/a
E--> ϵ /b
The above grammer is
Type 0 but not type 1
Type 1 but not type 2
Type 2 but not type 3
Type 0,1,2,3
In complexity theory, P1 P2 P3 are three algorithms where P1 & P2 are decidable and Un-decidable, respectively. Which of the following is true?
P3 is decidable if P1 is converted into P3
P3 is undecidable if P3 is converted into P2
P3 is decidable if P3 is converted into P1
P3 is decidable if P3 is converted into inverse of P2
L1 is a Recusive and L2 is Recursive enumerable but not recursive language. Which of the following is True?
Homomorphism of L1 is Resursive
complement of L2 is Recursive enumerable
complement of L1 is Recursive
Homomorphism of L2 is not Resursive enumerable
L1 is a Recusive and L2 is Recursive enumerable but not recursive language. Which of the following is False?
L1 is Recursive Enumerable language
Kleen Clousre of L1 is Recursive
Kleen Clousre of L2 is Recursive
Kleen Clousre of L2 is not Recursive enumerable
L1, & L2 are RL and DCFL . Which of the following is True
L1 ∪ L2 is not DCFL
L1 ∩ L2 is not DCFL
L1 ∪ L2 is CFL
none of the above
Which of the follwing is decidable of Halting turning machine
Ambiguity
Subset
Completeness Problem
Membership
Which of the follwing is Equivalent to RE: L+ + ϵ
Kleen closure (ϵ)
Positive closure (L)
Kleen closure (Kleen closure (L))
Postive closure (L)
Which of the following Statement is True
L is language is accepted by PDA it means it is a Regular Grammar
L is language is accepted by Finite State automata it means it is a Context sensitive Grammar
L is language is accepted by Finite State automata it means it is a Context Free Grammar
L is language is accepted by PDA it means it is a Context Free Grammar
Which of the following problem is undecidable ?
Membership problem for CFG
Ambuguity of Finite state machine
Equivalent of CFL
Totally of DCLF
0p1q0r, where p=q =r, and pqr≥0 , Which of the following is true
It is accepted by Finite state machine
it is accepted by PDA
It is accpeted NPDA
It is accepted by Turing Machine
if L and compliment of L is CFL, then L is not
Regular
Context Sensitive
Context Free
Recursive language
L1 and L2 is regular language, then
L1 ∪ L2 is not Regular
L1 ∩ L2 is not Regular
U-L2 is regular, where U is universal
R1+ is not Regular
L1={10,01,110}, L2={ ϵ + 101} then L1L2 is
{ ϵ , 10101,101110}
{10101,10101}
{10110, 10101}
{10101, 101110}
Recursive Enumerable are
is a Type 0
subset of CFL
recognized by Turing machine
all of the above
