Instructions For The Section. Like: Part-A: Answer All The Questions: (20 0.5 10)
Instructions For The Section. Like: Part-A: Answer All The Questions: (20 0.5 10)
Instructions For The Section. Like: Part-A: Answer All The Questions: (20 0.5 10)
1
b)has atleast one 'b'
c)should end in a 'a'
d)has no consecutive a's or b's
8 The DFA shown below accepts the set of all 0.5
strings over {0, 1} that
a)End with 00
b)End with 0
c)Begin either with 0 or 1
d)Contain the substring 00
9 CNF format is 0.5
NONTERMINAL-->NON TERMINAL NON
TERMINAL | TERMINAL
NONTERMINAL-->TERMINAL NON
TERMINAL | TERMINAL
NONTERMINAL-->NONTERMINAL
TERMINAL | TERMINAL
NONTERMINAL-->TERMINAL TERMINAL |
TERMINAL
10 Which among the following looks similar to the 0.5
given expression?
((0+1). (0+1)) *
{xϵ {0,1} *|x is all binary number with even
length}
{xϵ {0,1} |x is all binary number with even
length}
{xϵ {0,1} *|x is all binary number with odd
length}
{xϵ {0,1} |x is all binary number with odd
length}
11 Chomsky Hierarchy has ______ Number of 0.5
Languages
a)4
b)3
c)2
d)1
12 Context Sensitive Grammar have _________ 0.5
property
a)| β | <= | α |
b)| β | >= | α |
c)| β | > |αγ |
d)|γβ | <= | α |
13 There are ________ tuples in finite state 0.5
machine.
a)5
b)4
c)6
d)Unlimited
14 Which of the following statement is false? 0.5
2
b)In derivation tree, the label of all nodes except
leaf nodes is a variable
c)In derivation tree, if the root of a sub tree is X
then it is called –tree
d)None of the mentioned
15 Here is a grammar G: 0.5
S → AB
A → 0A1 | 2
B → 1B | 3A .
which of the following strings are accepted by
Grammar
a)021300211
b)022111300211
c)None of the mentioned
d)Both of the mentioned
16 The grammar 0.5
S → SS | 0S1 | 1S0 | ɛ
Generates _______________ String
a)NFA
b)DFA
c)PDA
d)TURING MACHINE
18 Which formula is required to convert NFA to 0.5
DFA
a)δ((q0,q1,q2.....qn),a)=δ(q0,a) U δ(q1,a) U
δ(q2,a)......U δ(qn,a)
b)µ((q0,q1,q2.....qn),a)=µ(q0,a) U µ(q1,a) U
µ(q2,a)......U µ(qn,a)
c)β((q0,q1,q2.....qn),a)=β(q0,a) U β(q1,a) U
β(q2,a)......U β(qn,a)
d)β((q0,q1,q2.....qn),a)=β(q0,a) U β(q1,a) U
µ(q2,a)......U µ(qn,a)
19 Which of the following input string is accepted 0.5
by given automata
a)0031275
b)2036920
c)1036910
d)1212121
20 S → aAa 0.5
A → bB
B → bB
3
B→c
This grammar is
w is ababa
Identify whether given w Is ababa in L(G)?
6 A Explain the differences between PDA and Finite Automata 1