Comprehensive FLAT Question Bank
Comprehensive FLAT Question Bank
https://rtpnotes.vercel.app
a) aabb
b) abab
c) aababb
d) aaabb
29 A pushdown automata behaves like a Turing machine D)2 or more
when the number
of auxiliary memory is
A)0. B)1. C)1 or more D)2 or more
30 There exists an initial state, 17 transition states, 7 A
final states and
one dumping state, Predict the maximum number of
states in its
equivalent DFA?
Qno Question Answer
a) 226
b) 224
c) 225
d) 223
31 Given the language L = {ab, aa, baa}, which of the 1,2,4
following strings are in L*?
A) abaabaaabaa
B) aaaabaaaa
C) baaaaabaaaab
D) baaaaabaa
Choose the correct answer
32 Any production of CFG of the form A---->€ is A
a)€ production b) unit production c) removal of
symbol d) zero
production
33 The context-free languages are closed for ? B) Union
A) Intersection
B) Union D) Kleene Star
C) Complementation
D) Kleene Star
34 There are ____ tuples in finite state machine. B
a) 4
b) 5
c) 6
d) unlimited
35 Which of the technique can be used to prove that a B
language is non
regular?
a) Ardens theorem
b) Pumping Lemma
c) Ogden’s Lemma
d) None of the mentioned
36 The number of states in a turing machine is ______ infinite
37 Myphill Nerode does the following: Both a and b
a) Minimization of DFA
b) Tells us exactly when a language is regular
c) Both (a) and (b)
d) None of the mentioned
38 Language not accepted in Linear bounded automata D
a)regular
b)context free
Qno Question Answer
c)context sensitive
d)recursively enumerable
40 Which one of the following problems is undecidable? A
(A) Deciding if a given context-free grammar is
ambiguous.
(B) Deciding if a given string is generated by a given
context-free
grammar.
(C) Deciding if the language generated by a given
context-free grammar
is empty.
(D) Deciding if the language generated by a given
context-free grammar
is finite.
41 The context free grammar given by C
S→XYX
X→aX|bX|λ
Y→bbb
generates the language which is defined by regular
expression:
a) (a+b)*bbb
b) abbb(a+b)*
c) (a+b)*(bbb)(a+b)*
d) (a+b)(bbb)(a+b)*
42 Language of finite automata is C
D) Type 3
A) Type 0
B) Type 1
C) Type 2
D) Type 3
43 The minimum number of states of the non- C
deterministic finite
automation which accepts the language
{a b a bn| n ≥ 0} ∪ {a b an|n ≥ 0} is
A)3
B)4
C)5
D)6
44 Palindromes can’t be recognized by any FSA because D
[A] FSA cannot remember arbitrarily large amount of
information
[B] FSA cannot deterministically fix the midpoint
Qno Question Answer
[C] Even if the mid point is known an FSA cannot find
whether the
second half of the string matches the first half
[D] all of the above
45 Which one of the following statement is FALSE? C
[A] context-free languages are closed under union
[B] context-free languages are closed under
concatenation
[C] context-free languages are closed under
intersection
[D] context-free languages are closed under Kleene
closure
46 Context free languages are not closed under A
(A)Intersection (B) Union (C)Reversal (D)Kleene
closure
47 Consider the following problems. L(G) denotes the D
language generated by a grammar G. L(M) denotes
the language accepted by a machine M.
a) 01,0011,010101
b) 0011,11001100
c)ε,0011,11001100
d)ε,0011,11001100
74 Which of the following is not part of 5 type finite D
automata?
a) Input Alphabet
b) Transition function
c) Initial state
d) Output alphabet
75 Which of the following conversion is not possible C
(algorithmically)?
a) Regular grammar to CFG
b) Non deterministic FA to Deterministic FA
c) Non Deterministic PDA to Deterministic PDA
d) Non Deterministic TM to Deterministic TM
76 Regular expression for all strings start with ab and C
ends with bba is
a) aba^*b^*bba
b) ab(ab)^*bba
Qno Question Answer
c) ab(a+b)^*bba
d) All of the mentioned
77 Pumping lemma is generally used for proving that B
a) Given grammar is regular
b) Given Grammar is not regular
c) Whether two given regular expression are
equivalent or not
d) None of these
78 Consider the regular language L = (111+11111) * 3
The minimum number of states in any DFA accepting
this language is
79 Suppose a regular language L is closed under the B
operation halving then the result would be
a) L1*
b) L2UL1
c) L1.L2
d) All of the mentioned
82 Consider a grammar with the following productions A
S-> aab | bac | aB
S -> aS |
S -> abb | ab
S -> bdb