One Mark
One Mark
UNIT-I
1. There are ________ tuples in finite state machine.
a) 4 b) 5 c) 6 d) unlimited
Answer: B
2. Transition function maps.
a) Σ * Q -> Σ b) Q * Q -> Σ c) Σ * Σ -> Q d) Q * Σ -> Q
Answer: D
3. Number of states require to accept string ends with 10.
a) 3 b) 2 c) 1 d) can’t be represented.
Answer: A
4. Extended transition function is .
a) Q * Σ* -> Q b) Q * Σ -> Q c) Q* * Σ* -> Σ d) Q * Σ ->
Σ
Answer: A
5. δ*(q,ya) is equivalent to .
a) δ((q,y),a) b) δ(δ*(q,y),a) c) δ(q,ya) d) independent from δ
notation
Answer: B
6. String X is accepted by finite automata if .
a) δ*(q,x) E A b) δ(q,x) E A c) δ*(Q0,x) E A d) δ(Q0,x) E
A
Answer: C
7. Languages of a automata is
a) If it is accepted by automata b) If it halts
c) If automata touch final state in its life time d) All language are
language of automata
Answer: A
8. Language of finite automata is.
a) Type 0 b) Type 1 c) Type 2 d) Type 3
Answer: D
11.Regular expression for all strings starts with ab and ends with bba
is_____________.
a) ab(b+a)*aba b) ab(a+b)*bab c) ab(a+b)*bba d) None of
the mentioned
Answer: C
12. How many DFA’s exits with two states over input alphabet {0,1} ?
a) 64 b) 24 c) 32 d) None of the mentioned
Answer: A
13. The basic limitation of finite automata is that it can’t remember
arbitrary large amount of information.
a) Flase b) True c)cnt say d) None of the
mentioned
Answer: B
14. Number of states require to simulate a computer with memory
capable of storing ’3′ words each of length ’8′.
a) 2^(3*8) b) 3^(2*8) c) 2^(8*3) d) None of
the mentioned
Answer:A
15. FSM with output capability can be used to add two given integer in
binary representation.
a) Flase b) True c)cnt say d) None of the
mentioned
Answer: B
16. In Mealy machine o/p depends on_______________
a) current input symbol and present state b) Present input symbol and
current state
c) current input symbol and current state d) Present input symbol and
present state
Answer: D
17. In Moore machine the next state is decided by_______________
a) current input symbol and present state b) Present input symbol and
current state
c) current input symbol and current state d) Present input symbol and
present state
Answer: C
18. In Moore machine the output function associated with ______
a) Λ (Lamda) b) Q c)q0 d) F
Answer: A
19. Melay and Moore machines are collection of _______ tuples.
a) 1 b) 6 c) 3 d) None of the mentioned
Answer: B
20. NDFA Stands for____________________________
a) Non Determining Finite Automata b) None Deterministic Finite
Automata
c) Non Deterministic First Automata d) Non Deterministic Finite
Automata
Answer: D
UNIT-2
Answer:b
a. Decidable
b. Cant say
c. Un decidable
d. trivially decidable
2. Let r and s are regular expressions denoting the languages R and S. Then
(rs)denote
answer:d
a. R*
b. RS
c. R+
d. RUS
answer:c
a. Φ
b. {Φ}
c. {ε}
d. ε
answer:a
e.
a. True
b. True or False
c. False
d. can„t say
answer:b
answer:a
a. r*
b. εr
c. ε
d. r
7. 1 + 01 =
answer:b
a. ε+0
b. (ε+0)1
c. 1 01
d. 1(ε+0)
answer:a
a. can‟ t say
b. True
c. True or False
d. False
answer:d
a. empty
b. 1
c. 10*
d. 0*
10. Pick the correct statement The logic of pumping lemma is a good example
of
answer:d
a. iteration
b. divide and conquer
answer:c
a. 01
b. ( 0 + 1) *
c. ( 0 + 1)
d. 0*1
answer:b
a. {Φ}
b. Φ
c. ε
d. {ε}
answer:a
a. 2
b. 3
c. 1
d. 0
e. 15.
a. All strings
b. No String
c. є alone
d. None of the above
a. 110 *(0+1)
b. 1(0+1)*101
c. (10)*(01)*(00+11)*
d. 00+(11*)0)*1
Answer:d
answer:d
a. 1*0)*1
b. 0+(0+10)*
c. 0+1)*10(0+1)*
d. None of the above
answer:2
answer:c
a. 010 *
b. 010
c. 0(10)*
d. 0*10
answer:a
a. acceptor
b. generative
c. cognitive
d. can‟t say
Answer:b
a. Type 0
b. Type 0, 1 & 2
c. Type 2
d. Type 1
UNIT-3
c) implicitly
d) Explicitly
Answer: A
3. The following CFG S aB |bA,A b| aS |bAA ,Bb| bS |aBB
Generates strings of terminals that have
a) equal number of a‟s and b‟s
b) even number of a‟s and even number of b‟s
c) odd number of a‟s and even number of a‟s
d) odd number of a‟s and odd number of b‟s
Answer: A
4. Pumping lemma for CFL : Let L be any CFL .Then there is a constant n
depending only on L ,such that if z is in
L and | z|>= n then we may write z= u v w x y such that
1) | vx|>= 1
2) | vwx| is----------
3) for all i>=0 u vi w xi y is in L
a) <n
b) >=n
c) <=n
d) >n
Answer: C
5. Context free languages are closed under ”union” is
a) can‟t say
b) False
c) True
d) True or False
Answer: C
6. A CFG is ambiguous if some word has left most derivations
a) < 1
b) 1
c) exactly 5
d) >1
Answer: D
7. Let two kinds of grammars be defined as follows
i) Aa, ABC
ii) A aa
a) ii denotes CNF and i does n‟t denote GNF
b) i denote CNF and ii does n‟t denote GNF
c) i denote CNF and ii denotes GNF
d) ii denotes CNF and i denotes GNF
Answer: C
15. A regular set accepted by DFA with n states is accepted to final state by a
DPDA with n states and at least ---------------- pushdown symbols
a) 1
b) 2
c) 4
Answer: A
16. Let L be a language accepted by a DPDA then compliment(L) can also be
accepted by a DPDA.” Is-------------
a) True
b) can‟t say
c) False
d) true or false
Answer: A
17. Context free languages are closed under ”union” is
a) can‟t say
b) False
c) True
d) True or False
Answer: C
18. NPDA = ( S, Σ, Г, δ, s, X).-----------. represents finite set of states
a) Σ
b) δ
c) S
d) Г
Answer: C
19. Non deterministic finite state acceptor--------------
a) CFL
b) CSL
c) Recursively enumerable language
d) RL
Answer: D
20. Which of the following is not accepted by DPDA
a) String ending with a particular alphabet
b) All strings in which a given symbol is present at least twice
c) All strings in which a given symbol is present at least thrice
d) Even palindromes
Answer: D
21. A PDA behaves like an FA when the number of auxiliary memory it has
is
a) 1 or more
b) 0
c) 3 or more
d) 2 or more
Answer: B
22. Let L be a DCFL .R be a regular language then L?R is not a DCFL is
a) can‟t say
b) true or false
c) True
d) False
e) X
Answer: D
23. Deterministic push down automaton :
a) CFL
b) DCFL
c) Recursively enumerable language
d) RL
Answer: B
24. Which of the following is accepted by an NPDA and not DPDA
a) All strings in which a given symbol is present at least twice
b) String ending with a particular alphabet
c) Even palindromes
d) All strings in which a given symbol is present at least thrice
Answer: C
25. A PDA behaves like an FA when the number of auxiliary memory it has
is
a) 1 or more
b) 2 or more
c) 3 or more
d) 0
Answer: D
26. A PDA behaves like as FA when the number of auxiliary memory it has
is
a. 0
b) 1
c) 2
d) None
Answer: A
UNIT-4
UNIT : 5
Answer:d
a)type 2
b)type 1
c)type 3
d)type 0
answer:c
a. False
b. True or False
c. True
d. can‟t say
answer:a
a. LR(0)
b. LR(1)
c. LR(3)
d. LR(2)
answer:b
answer:b
a. recursive
b. neither recursive nor non recursive
c. non recursive
d. recursive or non
e. recursive
6. What can you say about the membership problem for Type 0
grammars ?
Answer:c
a. decidable
b. partially decidable
c. can‟t say
d. undecidable
answer:c
answer:d
a. DTIME(n*n)
b. DTIME(n*n*n*n)
c. DTIME(n)
d. DTIME(n*n*n)
answer:b
answer:b
a. PDA
b. TM
c. LBA
d. FA
Answer:a
e.
a. type 0
b. type 1
c. type 3
d. type 2
answer:c
a. LL
b. LR(0)
c. LR(1)
d. LR(2)
Answer:d
a. Addition
b. LCM
c. division
d. Ackerman‟s function
answer:d
a. decidable
b. decidable or un decidable
c. can‟t say
d. un decidable
answer:c
answer:a
a. True
b. true or false
c. False
d. can‟t say
answer:b
a. can‟t say
b. unsolvable
c. solvable or unsolvable
d. solvable
answer:a
a. NP!= P
b. P=coNP
c. P!= coNP
d. NP=P
Answer:b
a. CFL
b. CSL
c. regular grammar
d. Unrestricted grammar
Answer:c