Professional Documents
Culture Documents
Toc Wheebox
Toc Wheebox
Toc Wheebox
testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
A : Kleene
B : Union
C : Complement
D : Concatenation
Q.no 2. If there exists a language L, for which there exists a TM, T, that accepts every word in L
and either rejects or loops for every word that is not in L, is called
A : Recursive
B : Recursively Enumerable
C : NP HARD
D : NP Complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : 5 tuples
B : 6 tuples
C : 4 tuples
D : 7 tuples
B : Moore machine has five tuples and Mealy machine has six tuples
C : Moore machine has six tuples and Mealy machine has five tuples
A : P, NP
B : NP, NP hard
C : P, P complete
D : NP Hard,P
Q.no 6. State true or false. Regular Expressions can be used with XML checkpoints
A : TRUE
B : FALSE
C:
D:
Q.no 7. If L1, L2 are regular and op(L1, L2) is also regular, then L1 and L2 are said to be
____________ under an operation op.
A : Open
B : Closed
C : Decidable
D : Not decidable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Copying a string
B : Deleting a symbol
C : Accepting a pal
D : Inserting a symbol
A : In leftmost derivation always leftmost nonterminal is chosen to obtain next step of derivation
B : In Rightmost derivation always rightmost nonterminal is chosen to obtain next step of derivation
A : Finite Automaton
B : Turing Machine
Q.no 11. The set generated by below given regular expression is ______________________.
A:
B:
C:
D:
A : All problems in P
A : TRUE
B : FALSE
C:
D:
Q.no 15. Minimum number of productions required to produce the language given in following
figure is ____.
A:3
B:7
C:5
D:6
Q.no 17. Is Turing machine is more powerful than Deterministic Finite Automata?
A : TRUE
B : FALSE
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 18. While converting the context free grammar into chomsky normal form, which of the
following is not necessary
A : CSL is less than Unrestricted is less than CFL is less than Regular language
B : Regular language is less than CFL is less than CSL is less than Unrestricted
C : CFL is less than CSL is less than Unrestricted is less than Regular language
D : Regular language is less than CSL is less than CFL is less than Unrestricted
Q.no 20. The transition a Push down automaton makes is additionally dependent upon the:
A : Stack
B : Input tape
C : terminals
D : non terminals
Q.no 21. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 25. Turing machine is more powerful than Finite State Machine because
Q.no 26. Which of the functions are not performed by the turing machine after reading a
symbol?
Q.no 27. Fill in the blank with the most appropriate option.
Statement: In theory of computation, abstract machines are often used in ___________ regarding
computability or to analyze the complexity of an algorithm.
A : Thought experiments
B : Principle
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Hypothesis
Q.no 28. Which of the following pairs have different expressive power?
C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine
Q.no 29. PDA is more powerful than ____ but less powerful than ________.
Q.no 30. Which among the following cannot be accepted by a regular grammar?
D : L is a set of 0n1n
Q.no 31. If complement of L1 and complement of L2 are regular languages, then L1 dot L2 will
be
A : Regular
B : Non-regular
C : may be regular
D : may be non-regular
Q.no 32. Consider the given figure .what will be the next ID?
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
Q.no 33. Describe the language generated by finite state machine given below.
Q.no 34. Consider the CFG given in following figure.Its equivalent simplified grammar is _____.
A:
B:
C:
D:
Q.no 35. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.
B : DFA
C : NDFA
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 37. In context to the process of removing useless symbols, which of the following is correct?
D : Turing Machine
Q.no 39. Consider the language given in following figure, what type of language it is?
B : Regular language
A : I and II
B : I and IV
C : II and III
D : II and IV
Q.no 42. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
A : 1, 2, 3, 4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : 1, 2
C : 2,3,4
D : 3, 4
Q.no 44. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
A:
B:
C:
D:
Q.no 46. Consider the following three regular expressions and two statements shown in below
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 47. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 48. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
B:
C:
D:
Q.no 49. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
Q.no 51. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
A:
B:
C:
D:
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 54. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 55. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 56. Consider the statement given in following figure and describe the language L. L is
________.
Q.no 57. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
Q.no 58. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
A : Not recursive
C : Regular language
Q.no 60. A PDA machine configuration (p, w, y) can be correctly represented as:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/17
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. What is the Regular Expression Matching Zero or More Specific Characters
A:
B:
C:
D:
Q.no 2. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
A : Copying a string
B : Deleting a symbol
C : Accepting a pal
D : Inserting a symbol
A:6
B:7
C:8
D:5
Q.no 6. A language L is subset of alphabet is said to be TDL if there is TM say M which always
halts on every w is element of alphabet if w is element L with an answer YES however if w is not
element of L then M halts with answer NO then that language is known as _____________
Q.no 7. Which of the technique can be used to prove that a language is non regular?
A : The language accepted by finite automata are the languages denoted by regular expressions
D : For every regular expression there exist a DFA accepting its language
Q.no 8. The finite automata is called a NFA when there exists __________for a specific input
from current state to next state
A : single path
B : multiple paths
D : zero path
C : Non-Deterministic
Q.no 10. A language L is said to be ____________ if there is a turing machine M such that L of M
is equal to L and M halts at every point.
A : Turing acceptable
B : Decidable
C : Undecidable
D : NP HARD
A : All problems in P
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Current state
C : on stack contents
D : uses all current state ,next input symbol and top of the stack
C:
D:
Q.no 14. Turing machine can be represented using the following tools:
A : Transition graph
B : Transition table
A : Regular expressions
C : Grammars
D : Finite Automata
A : x,y
B:x
C:y
D : xy
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 17. If w belongs to L of G, for some CFG, then w has a parse tree, which defines the
syntactic structure of w. w could be
A : Program
B : SQL query
C : XML document
D : All of these
Q.no 18. consider a Turing machine defined in following figure and state which statemnt is
A:
B:
C:
D:
Q.no 19. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
A : More
B : Less
C : No way
D : Very Much
Q.no 21. Describe the language generated by finite state machine given below.
Q.no 22. Which of the following options is correct? Statement 1 Initial State of NFA is Initial
State of DFA. Statement 2 The final state of DFA will be every combination of final state of NFA.
Q.no 24. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:z
D : mod xy
A:
B:
C:
D:
Q.no 27. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 28. Consider the grammars given in following figure.and select the correct option.
A:4
B:3
C:2
D:1
Q.no 30. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
C : 22
D : 27
A:
B:
C:
D:
Q.no 32. Which among the following cannot be accepted by a regular grammar?
D : L is a set of 0n1n
Q.no 33. Consider a language given in following figure.CFG used to produce given language is
_____.
A:
B:
C:
D:
B : Linear programming
Q.no 35. State true or false: Statement: Pumping lemma gives a necessary but not sufficient
condition for a language to be regular.
A : TRUE
B : FALSE
C:
D:
Q.no 36. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 37. Consider the CFG given in following figure.Its equivalent simplified grammar is _____.
A:
B:
C:
D:
A : For every non-deterministic Turing machine, there exists an equivalent deterministic Turing
machine.
Q.no 40. Consider the CFG given in following figure. Which of the production is useless
A:
B:
C:
D:
Q.no 41. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 42. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
C : 2s complement
D : 10s complement
A:
B:
C:
D:
Q.no 44. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
Q.no 45. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 46. consider the problem X given in following figure. And describe about it.
A : X is decidable
A:
B:
C:
D:
Q.no 48. Which of the following pair of regular expressions is not equivalent ?
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 49. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
Q.no 51. what is the answer of the question descried in following figure.
A:6
B:4
C:2
D:8
Q.no 52. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 53. A PDA machine configuration (p, w, y) can be correctly represented as:
Q.no 54. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : I and II
B : I and IV
C : II and III
D : II and IV
Q.no 56. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
Q.no 57. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
Q.no 58. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 59. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
Q.no 60. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. Which of the following data structure is used in design of post machine
A : Stack
B : Array
C : Queue
D : Linked list
Q.no 2. Non deterministic finite automata to deterministic finite automata conversion is done via
B : Warshalls Algorithm
C : Ardens theorem
D : Prims Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Turing acceptable
B : Decidable
C : Undecidable
D : NP HARD
A : NP
B:P
C : Hard
D : Complete
A:
B:
C:
D:
C:
D:
A : Kleene
B : Union
C : Complement
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : Concatenation
C : ndfa
D : ndpda
A:
B:
C:
D:
C : Non-Deterministic
Q.no 11. Consider the following figure and choose the correct answer from given below
A : star Production
B : Null Production
C : empty Production
D : useless production
A : TRUE
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : FALSE
C:
D:
Q.no 13. The finite automata is called a NFA when there exists __________for a specific input
from current state to next state
A : single path
B : multiple paths
D : zero path
Q.no 14. Which among the following is incorrect with reference to a derivation tree?
Q.no 15. If there exist more than on parse tree for the same string from the given grammar then
that grammar is said to be _______________
A : Recursive Grammar
B : Linear Grammar
C : Regular grammar
D : ambiguous grammar
Q.no 17. Those problems require large amount of computational resources that practically not
feasible to solve these problems, are known as _________
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Decidable
B : Undecidable
C : Tractable
D : Intractable
Q.no 18. In accordance to pumping lemma theorem of regular language, Complete the sentence
A : i is greater than 0
B : i is less than 0
A : Recursive
B : Non Recursive
C : Recognizable
D : Non Recognizable
A : Type 3 grammar
B : Type 2 grammar
C : Type 1 grammar
D : Type 0 grammar
Q.no 21. Consider the statement given in following figure and select the option which is true.
A : NP complete is equal to NP
B:
C : NP hard is equal to NP
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : P is equal to NP complete
A : NP
B:P
C : NP Hard
D : NP Complete
A:L
B : L'
C:f
D : empty
Q.no 24. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 26. Which of the following options is correct? Statement 1 Initial State of NFA is Initial
State of DFA. Statement 2 The final state of DFA will be every combination of final state of NFA.
Q.no 27. X is a simple mathematical model of a computer. X has unrestricted and unlimited
memory. X is a FA with R/W head. X can have an infinite tape divided into cells, each cell
holding one symbol.
Name X?
C : Turing machines
B : Linear programming
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 30. The construction time for DFA from an equivalent NFA (m number of node)is:
A:
B:
C:
D:
Q.no 31. Which of the functions are not performed by the turing machine after reading a
symbol?
Q.no 32. Which of the following one can relate to the given statement: Statement: If n items are
put into m containers, with n>m, then atleast one container must contain more than one item
C : Count principle
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 34. If there exists a TM which when applied to any problem in the class, terminates, if
correct answer is yes and may or may not terminate otherwise is called
A : Stable
B : Unsolvable
C : Partially solvable
D : Unstable
D : either both are final states or both are non final states
A : Regular language
Q.no 37. With reference to pumping lemma of regular language,answer the following question
A : mod z
B : mod y
C : mod x
D:n
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 39. Consider the CFG given in following figure. Which of the production is useless
A:
B:
C:
D:
Q.no 40. In context to the process of removing useless symbols, which of the following is correct?
Q.no 41. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 43. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 44. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 45. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
Q.no 46. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 47. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
A:
B:
C:
D:
A : I and II
B : I and IV
C : II and III
D : II and IV
Q.no 49. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 50. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
Q.no 51. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 53. Which of the following regular expression resembles the given diagram?
A:
B:
C:
D:
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 55. Consider a regular language described in following figure. Which regular expression is
A:
B:
C:
D:
Q.no 56. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
Q.no 57. Consider the statement given in following figure and describe the language L. L is
________.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 58. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
D:
Q.no 59. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
Q.no 60. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
A : L(R), R(L)
B : R, L( R )
C : R,L
D : L ( R) , L
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
A : TRUE
B : FALSE
C:
D:
Q.no 4. Consider the following figure and choose the correct answer from given below
A : star Production
B : Null Production
C : empty Production
D : useless production
A:5
B:4
C:3
D:6
Q.no 6. A language L is subset of alphabet is said to be TDL if there is TM say M which always
halts on every w is element of alphabet if w is element L with an answer YES however if w is not
element of L then M halts with answer NO then that language is known as _____________
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 7. In accordance to pumping lemma theorem of regular language, Complete the sentence
A : i is greater than 0
B : i is less than 0
Q.no 8. Finite state machine with output capability can be used to add two given integer in
binary representation.
A : TRUE
B : FALSE
C:
D:
C : Non-Deterministic
Q.no 11. Which kind of proof is used to prove the regularity of a language?
A : Proof by contradiction
B : Direct proof
C : Proof by induction
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : Proof by analogy
Q.no 12. The transition a Push down automaton makes is additionally dependent upon the:
A : Stack
B : Input tape
C : terminals
D : non terminals
A : All problems in P
A:
B:
C:
D:
B : Moore machine has five tuples and Mealy machine has six tuples
C : Moore machine has six tuples and Mealy machine has five tuples
Q.no 16. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
A : More
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Less
C : No way
D : Very Much
A : Turing machines
B : Transducer
Q.no 19. A language L is said to be ____________ if there is a turing machine M such that L of M
is equal to L and M halts at every point.
A : Turing acceptable
B : Decidable
C : Undecidable
D : NP HARD
Q.no 20. Which of the following can be used to simulate any turing machine?
C : Counter machines
Q.no 21. Which among the following is not true for 2-way infinte TM?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.
Q.no 22. Describe the language generated by finite state machine given below.
Q.no 23. With refernce to given diagram ,Which of the statements are false?
A : 1 and 3 only
B : 2 and 4 only
C : 2 and 3 only
D : 3 and 4 only
Q.no 24. While converting the context free grammar into Greibach normal form, which of the
following is necessary
Q.no 25. The ability for a system of instructions to simulate a Turing Machine is called
_________
A : Turing Completeness
B : Simulation
C : Turing Halting
D : Computability
B : Linear programming
A:
B:
C:
D:
Q.no 28. Which of the following options is correct? Statement 1 Initial State of NFA is Initial
State of DFA. Statement 2 The final state of DFA will be every combination of final state of NFA.
Q.no 29. Which of the following is not a Non deterministic turing machine?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : Unsolvable
Q.no 30. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?
A : NP
B:P
C : NP Hard
D : NP Complete
D : Turing Machine
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 33. X is a simple mathematical model of a computer. X has unrestricted and unlimited
memory. X is a FA with R/W head. X can have an infinite tape divided into cells, each cell
holding one symbol.
Name X?
C : Turing machines
Q.no 34. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
Q.no 35. Consider the CFG given in following figure.Its equivalent simplified grammar is _____.
A:
B:
C:
D:
A : Regular language
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 37. Consider the given figure .what will be the next ID?
A:
B:
C:
B : Halting Problem
C : Hitting Set
D : Prims Algorithm
Q.no 39. PDA is more powerful than ____ but less powerful than ________.
Q.no 40. Which of the following pairs have different expressive power?
C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine
Q.no 41. Consider the CFG given in following figure, Which language is generated by it?
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 42. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
Q.no 43. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 44. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 45. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
A : Not recursive
C : Regular language
Q.no 47. A PDA machine configuration (p, w, y) can be correctly represented as:
A:
B:
C:
D:
Q.no 50. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 51. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 52. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
C:
D:
Q.no 53. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
Q.no 54. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 55. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
A:
B:
C:
D:
Q.no 57. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 58. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
C : 2s complement
D : 10s complement
Q.no 59. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 60. what is the answer of the question descried in following figure.
A:6
B:4
C:2
D:8
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
C : Non-Deterministic
Q.no 2. Those problems require large amount of computational resources that practically not
feasible to solve these problems, are known as _________
A : Decidable
B : Undecidable
C : Tractable
D : Intractable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Binary tree
C : Parse tree
A : L(R), R(L)
B : R, L( R )
C : R,L
D : L ( R) , L
A : Current state
C : on stack contents
D : uses all current state ,next input symbol and top of the stack
A : Type 3 grammar
B : Type 2 grammar
C : Type 1 grammar
D : Type 0 grammar
A : 5 tuples
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : 6 tuples
C : 4 tuples
D : 7 tuples
A:
B:
C:
D:
A : In leftmost derivation always leftmost nonterminal is chosen to obtain next step of derivation
B : In Rightmost derivation always rightmost nonterminal is chosen to obtain next step of derivation
B : Moore machine has five tuples and Mealy machine has six tuples
C : Moore machine has six tuples and Mealy machine has five tuples
Q.no 12. Minimum number of productions required to produce the language given in following
figure is ____.
A:3
B:7
C:5
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:6
A:6
B:7
C:8
D:5
A : TRUE
B : FALSE
C:
D:
C:
D:
Q.no 17. Context free grammar is called Type 2 grammar because of ______________ hierarchy.
A : Chomsky
B : Greibach
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Arden's
D : Backus
Q.no 18. In accordance to pumping lemma theorem of regular language, Complete the sentence
A : i is greater than 0
B : i is less than 0
Q.no 19. Which of the following are the actions that operates on stack top?
A : Pushing
B : Popping
C : Replacing
A : All problems in P
Q.no 21. Which among the following cannot be accepted by a regular grammar?
D : L is a set of 0n1n
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
B : Halting Problem
C : Hitting Set
D : Prims Algorithm
Q.no 24. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.
B : DFA
C : NDFA
Q.no 26. With refernce to given diagram ,Which of the statements are false?
A : 1 and 3 only
B : 2 and 4 only
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : 2 and 3 only
D : 3 and 4 only
A:L
B : L'
C:f
D : empty
Q.no 28. Statement 1: Ambiguity is the property of grammar but not the language.
Statement 2: Same language can have more than one grammar.
Which of the following options are correct with respect to the given statements?
D : either both are final states or both are non final states
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 32. Consider the grammars given in following figure.and select the correct option.
A:4
B:3
C:2
D:1
Q.no 33. If complement of L1 and complement of L2 are regular languages, then L1 dot L2 will
be
A : Regular
B : Non-regular
C : may be regular
D : may be non-regular
Q.no 34. Consider the CFG given in following figure.Its equivalent simplified grammar is _____.
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 35. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
A : NP
B:P
C : NP Hard
D : NP Complete
Q.no 37. Which among the following is not true for 2-way infinte TM?
C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.
A:
B:
C:
D:
Q.no 40. Which of the following is not a Non deterministic turing machine?
D : Unsolvable
Q.no 41. what is the answer of the question descried in following figure.
A:6
B:4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:2
D:8
Q.no 42. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 43. Consider the following three regular expressions and two statements shown in below
A:
B:
C:
D:
Q.no 44. Consider a regular language described in following figure. Which regular expression is
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 45. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
C:
D:
A:
B:
C:
D:
Q.no 47. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 48. Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2
is undecidable. Which one of the following is True?
A : P3 is decidable if P1 is reducible to P3
B : P3 is undecidable if P3 is reducible to P2
C : P3 is undecidable if P2 is reducible to P3
Q.no 49. Find out which minimal DFA accepts same language as accepted by DFA D shown in
figure
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 50. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : I and II
B : I and IV
C : II and III
D : II and IV
Q.no 52. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 53. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
A : Not recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Regular language
Q.no 55. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
C : 2s complement
D : 10s complement
A:
B:
C:
D:
Q.no 57. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
Q.no 58. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
Q.no 59. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
D:
Q.no 60. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/17
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
C:
D:
Q.no 2. While applying Pumping lemma over a language, we consider a string w that belong to L
and fragment it into _________ parts.
A:2
B:5
C:3
D:6
Q.no 3. Which of the following data structure is used in design of push down automata
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Stack
B : Array
C : Queue
D : Linked list
Q.no 4. _________ is the class of decision problems that can be solved by non-deterministic
polynomial algorithms?
A : NP
B:P
C : Hard
D : Complete
A : Finite Automaton
B : Turing Machine
A : Turing acceptable
B : Decidable
C : Undecidable
D : NP HARD
A : All problems in P
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 8. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
C:
D:
Q.no 9. Which of the technique can be used to prove that a language is non regular?
A : Ardens theorem
B : Ogden’s Lemma
C : Pumping Lemma
D : Jordens theorem
A:6
B:7
C:8
D:5
Q.no 11. Turing Machine also behave like General purpose computer and that TM is known as
_______
Q.no 12. Which of the technique can be used to prove that a language is non regular?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : The language accepted by finite automata are the languages denoted by regular expressions
D : For every regular expression there exist a DFA accepting its language
A : TRUE
B : FALSE
C:
D:
Q.no 14. Which among the following is incorrect with reference to a derivation tree?
Q.no 15. Turing machine can be represented using the following tools:
A : Transition graph
B : Transition table
Q.no 16. Is Turing machine is more powerful than Deterministic Finite Automata?
A : TRUE
B : FALSE
C:
D:
Q.no 17. The transition a Push down automaton makes is additionally dependent upon the:
A : Stack
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Input tape
C : terminals
D : non terminals
Q.no 18. State true or false. Regular Expressions can be used with XML checkpoints
A : TRUE
B : FALSE
C:
D:
A : In leftmost derivation always leftmost nonterminal is chosen to obtain next step of derivation
B : In Rightmost derivation always rightmost nonterminal is chosen to obtain next step of derivation
Q.no 21. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.
B : DFA
C : NDFA
Q.no 22. Complete the statement given in following figure to make it true with reference to CFG.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 23. Consider the given alphabet and regular expression R. What type of language it
represents?
A:
B:
C:
D:
Q.no 24. Which among the following is not true for 2-way infinte TM?
C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.
Q.no 25. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
Q.no 26. In context to the process of removing useless symbols, which of the following is correct?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 27. Consider the given figure .what will be the next ID?
A:
B:
C:
Q.no 28. Which among the following cannot be accepted by a regular grammar?
D : L is a set of 0n1n
B : Halting Problem
C : Hitting Set
D : Prims Algorithm
Q.no 30. X is a simple mathematical model of a computer. X has unrestricted and unlimited
memory. X is a FA with R/W head. X can have an infinite tape divided into cells, each cell
holding one symbol.
Name X?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Turing machines
A:
B:
C:
D:
Q.no 32. Describe the language generated by finite state machine given below.
Q.no 33. How many states are required to design a deterministic finite automata which accept
strings that end with bb.
A:4
B:3
C:2
D:1
Q.no 34. Which of the functions are not performed by the turing machine after reading a
symbol?
Q.no 35. The construction time for DFA from an equivalent NFA (m number of node)is:
A:
B:
C:
D:
Q.no 36. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
C : 22
D : 27
A:
B:
C:
D:
Q.no 38. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 39. Consider the language given in following figure, what type of language it is?
B : Regular language
Q.no 40. If there exists a TM which when applied to any problem in the class, terminates, if
correct answer is yes and may or may not terminate otherwise is called
A : Stable
B : Unsolvable
C : Partially solvable
D : Unstable
Q.no 41. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 43. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
Q.no 44. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
C:
D:
Q.no 45. A PDA machine configuration (p, w, y) can be correctly represented as:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 46. Which of the following regular expression resembles the given diagram?
A:
B:
C:
D:
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 48. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
Q.no 49. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
Q.no 50. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
Q.no 52. Find out which minimal DFA accepts same language as accepted by DFA D shown in
figure
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 53. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
Q.no 54. Consider a regular language described in following figure. Which regular expression is
A:
B:
C:
D:
Q.no 55. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 56. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 57. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 58. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
Q.no 59. Consider the following three regular expressions and two statements shown in below
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 60. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
A : Current state
C : on stack contents
D : uses all current state ,next input symbol and top of the stack
A:5
B:4
C:3
D:6
Q.no 3. Which of the following case does not exist in complexity theory?
A : Best case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Worst case
C : Average case
D : Null case
Q.no 4. Which of the following are the actions that operates on stack top?
A : Pushing
B : Popping
C : Replacing
Q.no 5. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
A : More
B : Less
C : No way
D : Very Much
A : TRUE
B : FALSE
C:
D:
B : Moore machine has five tuples and Mealy machine has six tuples
C : Moore machine has six tuples and Mealy machine has five tuples
A : Copying a string
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Deleting a symbol
C : Accepting a pal
D : Inserting a symbol
Q.no 9. If there exists a language L, for which there exists a TM, T, that accepts every word in L
and either rejects or loops for every word that is not in L, is called
A : Recursive
B : Recursively Enumerable
C : NP HARD
D : NP Complete
Q.no 10. Consider the following figure and choose the correct answer from given below
A : star Production
B : Null Production
C : empty Production
D : useless production
A : All problems in P
A : Recursive Language
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 13. The set generated by below given regular expression is ______________________.
A:
B:
C:
D:
Q.no 14. If w belongs to L of G, for some CFG, then w has a parse tree, which defines the
syntactic structure of w. w could be
A : Program
B : SQL query
C : XML document
D : All of these
A : CSL is less than Unrestricted is less than CFL is less than Regular language
B : Regular language is less than CFL is less than CSL is less than Unrestricted
C : CFL is less than CSL is less than Unrestricted is less than Regular language
D : Regular language is less than CSL is less than CFL is less than Unrestricted
Q.no 17. Minimum number of productions required to produce the language given in following
figure is ____.
A:3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:7
C:5
D:6
Q.no 18. If T1 and T2 are two turing machines. The composite can be represented using the
expression:
A : T1T2
B : T2T1
C : T1 X T2
D : T2T2T1
A : English Grammar
B : Regular Grammar
A:6
B:7
C:8
D:5
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 22. Which of the functions are not performed by the turing machine after reading a
symbol?
A : Regular language
Q.no 26. Which of the following pairs have different expressive power?
C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 27. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
Q.no 28. Consider a language given in following figure.CFG used to produce given language is
_____.
A:
B:
C:
D:
Q.no 29. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
C : 22
D : 27
Q.no 30. How many strings can be generated as described in following figure.
A : 35
B : 49
C : 360
D : 720
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 31. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?
Q.no 32. While converting the context free grammar into Greibach normal form, which of the
following is necessary
Q.no 33. Consider the statement given in following figure and select the option which is true.
A : NP complete is equal to NP
B:
C : NP hard is equal to NP
D : P is equal to NP complete
Q.no 34. If there exists a TM which when applied to any problem in the class, terminates, if
correct answer is yes and may or may not terminate otherwise is called
A : Stable
B : Unsolvable
C : Partially solvable
D : Unstable
Q.no 35. State true or false: Statement: Pumping lemma gives a necessary but not sufficient
condition for a language to be regular.
A : TRUE
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : FALSE
C:
D:
Q.no 36. If complement of L1 and complement of L2 are regular languages, then L1 dot L2 will
be
A : Regular
B : Non-regular
C : may be regular
D : may be non-regular
Q.no 38. Consider the given alphabet and regular expression R. What type of language it
represents?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 39. With refernce to given diagram ,Which of the statements are false?
A : 1 and 3 only
B : 2 and 4 only
C : 2 and 3 only
D : 3 and 4 only
A:L
B : L'
C:f
D : empty
Q.no 41. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
Q.no 42. Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2
is undecidable. Which one of the following is True?
A : P3 is decidable if P1 is reducible to P3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : P3 is undecidable if P3 is reducible to P2
C : P3 is undecidable if P2 is reducible to P3
Q.no 43. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
D:
Q.no 44. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
Q.no 45. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : 2s complement
D : 10s complement
Q.no 46. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
Q.no 47. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 49. A PDA machine configuration (p, w, y) can be correctly represented as:
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
Q.no 51. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 52. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 53. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
C:
D:
Q.no 54. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 55. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
C:
D:
Q.no 56. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 57. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 58. Which of the following regular expression resembles the given diagram?
A:
B:
C:
D:
Q.no 59. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 60. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 19/19
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
A : More
B : Less
C : No way
D : Very Much
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Turing machine rejects if the input does not belong to the language
A : Recursive
B : Non Recursive
C : Recognizable
D : Non Recognizable
A : Regular expressions
C : Grammars
D : Finite Automata
A : Copying a string
B : Deleting a symbol
C : Accepting a pal
D : Inserting a symbol
A : Binary tree
C : Parse tree
Q.no 8. If there exists a language L, for which there exists a TM, T, that accepts every word in L
and either rejects or loops for every word that is not in L, is called
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Recursive
B : Recursively Enumerable
C : NP HARD
D : NP Complete
C : Non-Deterministic
A : x,y
B:x
C:y
D : xy
A : Recursive Ennumerable
B : Recursive
D : PDA
Q.no 12. If L1, L2 are regular and op(L1, L2) is also regular, then L1 and L2 are said to be
____________ under an operation op.
A : Open
B : Closed
C : Decidable
D : Not decidable
Q.no 13. While converting the context free grammar into chomsky normal form, which of the
following is not necessary
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : NFA to DFA
A:
B:
C:
D:
Q.no 16. Context free grammar is called Type 2 grammar because of ______________ hierarchy.
A : Chomsky
B : Greibach
C : Arden's
D : Backus
Q.no 17. Consider a language described in following figure. Which regular expression is used to
represent it?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
A : Intersection
B : Union
C : Kleene star
D : ALL
Q.no 20. A problem which is both _______ and _________ is said to be NP complete.
A : P, NP
B : NP, NP hard
C : P, P complete
D : NP Hard,P
Q.no 21. Which of the functions are not performed by the turing machine after reading a
symbol?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 23. Turing machine is more powerful than Finite State Machine because
Q.no 24. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
Q.no 27. If there exists a TM which when applied to any problem in the class, terminates, if
correct answer is yes and may or may not terminate otherwise is called
A : Stable
B : Unsolvable
C : Partially solvable
D : Unstable
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 29. Consider the CFG given in following figure. Which of the production is useless
A:
B:
C:
D:
Q.no 30. Consider the language given in following figure, what type of language it is?
B : Regular language
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 31. Consider the statement given in following figure and select the option which is true.
A : NP complete is equal to NP
B:
C : NP hard is equal to NP
D : P is equal to NP complete
A:
B:
C:
D:
A:
B:
C:
D:
Q.no 35. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.
B : DFA
C : NDFA
D : Turing Machine
Q.no 37. How many strings can be generated as described in following figure.
A : 35
B : 49
C : 360
D : 720
B : Halting Problem
C : Hitting Set
D : Prims Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 39. The construction time for DFA from an equivalent NFA (m number of node)is:
A:
B:
C:
D:
Q.no 40. While converting the context free grammar into Greibach normal form, which of the
following is necessary
Q.no 41. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
A:
B:
C:
D:
Q.no 42. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : 1s complement
C : 2s complement
D : 10s complement
Q.no 43. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
A : I and II
B : I and IV
C : II and III
D : II and IV
Q.no 45. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 46. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 47. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 49. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 51. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
Q.no 52. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
C:
D:
Q.no 53. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
A : Not recursive
C : Regular language
Q.no 55. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
Q.no 56. Consider the statement given in following figure and describe the language L. L is
________.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 57. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
Q.no 58. Consider the following three regular expressions and two statements shown in below
A:
B:
C:
D:
Q.no 59. Which of the following pair of regular expressions is not equivalent ?
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 60. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/17
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
C:
D:
A : Proof by contradiction
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Direct proof
C : Proof by induction
D : Proof by analogy
A : Recursive Ennumerable
B : Recursive
D : PDA
A : Transition graph
B : Transition table
C : Non-Deterministic
Q.no 7. Which among the following is incorrect with reference to a derivation tree?
Q.no 8. If L1, L2 are regular and op(L1, L2) is also regular, then L1 and L2 are said to be
____________ under an operation op.
A : Open
B : Closed
C : Decidable
D : Not decidable
A:
B:
C:
D:
Q.no 10. Which of the technique can be used to prove that a language is non regular?
A : The language accepted by finite automata are the languages denoted by regular expressions
D : For every regular expression there exist a DFA accepting its language
Q.no 11. State true or false. Regular Expressions can be used with XML checkpoints
A : TRUE
B : FALSE
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Binary tree
C : Parse tree
Q.no 13. Finite-state acceptors for the nested words can be:
C : ndfa
D : ndpda
Q.no 14. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
A : More
B : Less
C : No way
D : Very Much
Q.no 15. Which of the following can be used to simulate any turing machine?
C : Counter machines
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
C : Turing machine rejects if the input does not belong to the language
A : English Grammar
B : Regular Grammar
Q.no 19. If w belongs to L of G, for some CFG, then w has a parse tree, which defines the
syntactic structure of w. w could be
A : Program
B : SQL query
C : XML document
D : All of these
A : TRUE
B : FALSE
C:
D:
Q.no 22. Consider the given alphabet and regular expression R. What type of language it
represents?
A:
B:
C:
D:
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : either both are final states or both are non final states
Q.no 26. Consider a language given in following figure.CFG used to produce given language is
_____.
A:
B:
C:
D:
Q.no 27. Complete the statement given in following figure to make it true with reference to CFG.
Q.no 28. Turing machine is more powerful than Finite State Machine because
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 30. Consider the grammars given in following figure.and select the correct option.
A:4
B:3
C:2
D:1
Q.no 31. Fill in the blank with the most appropriate option.
Statement: In theory of computation, abstract machines are often used in ___________ regarding
computability or to analyze the complexity of an algorithm.
A : Thought experiments
B : Principle
C : Hypothesis
B : Linear programming
Q.no 33. The travelling salesman problem can be solved using _________
A : A spanning tree
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : DFS traversal
Q.no 34. The ability for a system of instructions to simulate a Turing Machine is called
_________
A : Turing Completeness
B : Simulation
C : Turing Halting
D : Computability
Q.no 35. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
C : 22
D : 27
A:
B:
C:
D:
Q.no 37. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?
Q.no 38. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 40. Which of the functions are not performed by the turing machine after reading a
symbol?
Q.no 41. what is the answer of the question descried in following figure.
A:6
B:4
C:2
D:8
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 42. Consider the following three regular expressions and two statements shown in below
A:
B:
C:
D:
Q.no 43. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 44. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:2
D:3
Q.no 45. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
Q.no 46. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
C:
D:
Q.no 47. A PDA machine configuration (p, w, y) can be correctly represented as:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 48. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 51. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
B:
C:
D:
Q.no 52. Which of the following regular expression resembles the given diagram?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 53. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
Q.no 54. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
Q.no 55. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 56. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 57. Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2
is undecidable. Which one of the following is True?
A : P3 is decidable if P1 is reducible to P3
B : P3 is undecidable if P3 is reducible to P2
C : P3 is undecidable if P2 is reducible to P3
Q.no 58. Consider a regular language described in following figure. Which regular expression is
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 59. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
A : Not recursive
C : Regular language
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/17
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
C : ndfa
D : ndpda
A:5
B:4
C:3
D:6
Q.no 3. Which of the following case does not exist in complexity theory?
A : Best case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Worst case
C : Average case
D : Null case
A : TRUE
B : FALSE
C:
D:
A : Transition graph
B : Transition table
A:
B:
C:
D:
A : Recursive Language
A : Regular expressions
C : Grammars
D : Finite Automata
Q.no 10. If there exist more than on parse tree for the same string from the given grammar then
that grammar is said to be _______________
A : Recursive Grammar
B : Linear Grammar
C : Regular grammar
D : ambiguous grammar
D : Generic grammar
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Kleene
B : Union
C : Complement
D : Concatenation
Q.no 14. The set generated by below given regular expression is ______________________.
A:
B:
C:
D:
A : TRUE
B : FALSE
C:
D:
Q.no 16. Which of the technique can be used to prove that a language is non regular?
A : Ardens theorem
B : Ogden’s Lemma
C : Pumping Lemma
D : Jordens theorem
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
C : NFA to DFA
Q.no 19. Regular Expression R and the language it describes can be represented as
A : L(R), R(L)
B : R, L( R )
C : R,L
D : L ( R) , L
C : Turing machine rejects if the input does not belong to the language
Q.no 21. Consider the given alphabet and regular expression R. What type of language it
represents?
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 22. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?
Q.no 23. Consider the language given in following figure, what type of language it is?
B : Regular language
Q.no 24. With reference to pumping lemma of regular language,answer the following question
A : mod z
B : mod y
C : mod x
D:n
Q.no 25. Consider the CFG given in following figure. Which of the production is useless
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 26. Consider the CFG given in following figure.Its equivalent simplified grammar is _____.
A:
B:
C:
D:
Q.no 27. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?
Q.no 29. Which of the following pairs have different expressive power?
C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : NP
B:P
C : NP Hard
D : NP Complete
Q.no 31. How many states are required to design a deterministic finite automata which accept
strings that end with bb.
A:4
B:3
C:2
D:1
Q.no 32. Turing machine is more powerful than Finite State Machine because
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Regular language
A : For every non-deterministic Turing machine, there exists an equivalent deterministic Turing
machine.
A:L
B : L'
C:f
D : empty
Q.no 37. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : 22
D : 27
Q.no 39. The ability for a system of instructions to simulate a Turing Machine is called
_________
A : Turing Completeness
B : Simulation
C : Turing Halting
D : Computability
Q.no 41. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 42. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
D:
Q.no 43. what is the answer of the question descried in following figure.
A:6
B:4
C:2
D:8
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 44. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
A:
B:
C:
D:
Q.no 46. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
Q.no 47. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 48. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
A:
B:
C:
D:
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
A : Not recursive
C : Regular language
Q.no 51. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 53. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Undecidable
C : Computable
D : Recognizable
Q.no 54. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 55. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
B:
C:
D:
A : 1, 2, 3, 4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : 1, 2
C : 2,3,4
D : 3, 4
Q.no 57. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
Q.no 58. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 59. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
Q.no 60. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
A : Recursive Ennumerable
B : Recursive
D : PDA
A : Gedit
B : JFLAP
C : FAUTO
D : grep
Q.no 3. Which of the following case does not exist in complexity theory?
A : Best case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Worst case
C : Average case
D : Null case
A : Finite Automaton
B : Turing Machine
Q.no 5. If there exists a language L, for which there exists a TM, T, that accepts every word in L
and either rejects or loops for every word that is not in L, is called
A : Recursive
B : Recursively Enumerable
C : NP HARD
D : NP Complete
A : Intersection
B : Union
C : Kleene star
D : ALL
A : Proof by contradiction
B : Direct proof
C : Proof by induction
D : Proof by analogy
A : Polynomial
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Non polynomial
C : Logarithmic
D : Non Logarithmic
A:
B:
C:
D:
A : Type 3 grammar
B : Type 2 grammar
C : Type 1 grammar
D : Type 0 grammar
Q.no 11. Those problems require large amount of computational resources that practically not
feasible to solve these problems, are known as _________
A : Decidable
B : Undecidable
C : Tractable
D : Intractable
C : Turing machine rejects if the input does not belong to the language
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : TRUE
B : FALSE
C:
D:
A : Binary tree
C : Parse tree
Q.no 15. The finite automata is called a NFA when there exists __________for a specific input
from current state to next state
A : single path
B : multiple paths
D : zero path
Q.no 16. Minimum number of productions required to produce the language given in following
figure is ____.
A:3
B:7
C:5
D:6
Q.no 17. Regular Expression R and the language it describes can be represented as
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : L(R), R(L)
B : R, L( R )
C : R,L
D : L ( R) , L
D : Generic grammar
A : CSL is less than Unrestricted is less than CFL is less than Regular language
B : Regular language is less than CFL is less than CSL is less than Unrestricted
C : CFL is less than CSL is less than Unrestricted is less than Regular language
D : Regular language is less than CSL is less than CFL is less than Unrestricted
Q.no 21. With reference to pumping lemma of regular language,answer the following question
A : mod z
B : mod y
C : mod x
D:n
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 22. Complete the statement given in following figure to make it true with reference to CFG.
Q.no 24. Describe the language generated by finite state machine given below.
Q.no 25. Consider the grammars given in following figure.and select the correct option.
A:4
B:3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:2
D:1
Q.no 26. PDA is more powerful than ____ but less powerful than ________.
Q.no 28. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
Q.no 29. Consider a language given in following figure.CFG used to produce given language is
_____.
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 30. If complement of L1 and complement of L2 are regular languages, then L1 dot L2 will
be
A : Regular
B : Non-regular
C : may be regular
D : may be non-regular
A : NP
B:P
C : NP Hard
D : NP Complete
Q.no 32. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
Q.no 33. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:2
C : 22
D : 27
Q.no 34. Which of the following pairs have different expressive power?
C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine
Q.no 35. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?
Q.no 36. Consider the CFG given in following figure. Which of the production is useless
A:
B:
C:
D:
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
A:L
B : L'
C:f
D : empty
D : Turing Machine
Q.no 41. consider the problem X given in following figure. And describe about it.
A : X is decidable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 42. Which of the following regular expression resembles the given diagram?
A:
B:
C:
D:
Q.no 43. Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2
is undecidable. Which one of the following is True?
A : P3 is decidable if P1 is reducible to P3
B : P3 is undecidable if P3 is reducible to P2
C : P3 is undecidable if P2 is reducible to P3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : I and II
B : I and IV
C : II and III
D : II and IV
A:
B:
C:
D:
Q.no 46. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
A:
B:
C:
D:
Q.no 47. Consider the finite automata and string given in following figure.The set of reachable
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 48. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 49. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
Q.no 50. Consider a regular language described in following figure. Which regular expression is
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 51. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
C:
D:
Q.no 52. Consider the following three regular expressions and two statements shown in below
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 53. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
Q.no 54. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 55. Find out which minimal DFA accepts same language as accepted by DFA D shown in
figure
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 56. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
Q.no 57. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : abbbba
Q.no 58. A PDA machine configuration (p, w, y) can be correctly represented as:
Q.no 59. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
Q.no 60. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. If T1 and T2 are two turing machines. The composite can be represented using the
expression:
A : T1T2
B : T2T1
C : T1 X T2
D : T2T2T1
A : Recursive Language
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 3. consider a Turing machine defined in following figure and state which statemnt is always
A:
B:
C:
D:
Q.no 4. If w belongs to L of G, for some CFG, then w has a parse tree, which defines the syntactic
structure of w. w could be
A : Program
B : SQL query
C : XML document
D : All of these
A : English Grammar
B : Regular Grammar
A : Copying a string
B : Deleting a symbol
C : Accepting a pal
D : Inserting a symbol
A : Polynomial
B : Non polynomial
C : Logarithmic
D : Non Logarithmic
Q.no 9. Finite state machine with output capability can be used to add two given integer in
binary representation.
A : TRUE
B : FALSE
C:
D:
A:
B:
C:
D:
Q.no 11. Regular Expression R and the language it describes can be represented as
A : L(R), R(L)
B : R, L( R )
C : R,L
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : L ( R) , L
Q.no 12. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
A : More
B : Less
C : No way
D : Very Much
Q.no 13. A language L is said to be ____________ if there is a turing machine M such that L of M
is equal to L and M halts at every point.
A : Turing acceptable
B : Decidable
C : Undecidable
D : NP HARD
A : Recursive Ennumerable
B : Recursive
D : PDA
A:
B:
C:
D:
Q.no 16. Consider the following figure and choose the correct answer from given below
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : star Production
B : Null Production
C : empty Production
D : useless production
Q.no 17. If L1, L2 are regular and op(L1, L2) is also regular, then L1 and L2 are said to be
____________ under an operation op.
A : Open
B : Closed
C : Decidable
D : Not decidable
Q.no 18. A problem which is both _______ and _________ is said to be NP complete.
A : P, NP
B : NP, NP hard
C : P, P complete
D : NP Hard,P
A:0
B:1
C:2
D:3
A:6
B:7
C:8
D:5
Q.no 21. Which of the functions are not performed by the turing machine after reading a
symbol?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 24. Consider a language given in following figure.CFG used to produce given language is
_____.
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
B : Linear programming
Q.no 28. Which of the following options is correct? Statement 1 Initial State of NFA is Initial
State of DFA. Statement 2 The final state of DFA will be every combination of final state of NFA.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 30. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?
Q.no 31. How many strings can be generated as described in following figure.
A : 35
B : 49
C : 360
D : 720
Q.no 33. Consider the CFG given in following figure.Its equivalent simplified grammar is _____.
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 34. Statement 1: Ambiguity is the property of grammar but not the language.
Statement 2: Same language can have more than one grammar.
Which of the following options are correct with respect to the given statements?
A:L
B : L'
C:f
D : empty
Q.no 36. The travelling salesman problem can be solved using _________
A : A spanning tree
D : DFS traversal
Q.no 37. Complete the statement given in following figure to make it true with reference to CFG.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 38. Consider the language given in following figure, what type of language it is?
B : Regular language
Q.no 39. Consider the given figure .what will be the next ID?
A:
B:
C:
Q.no 40. Fill in the blank with the most appropriate option.
Statement: In theory of computation, abstract machines are often used in ___________ regarding
computability or to analyze the complexity of an algorithm.
A : Thought experiments
B : Principle
C : Hypothesis
Q.no 41. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:2
D:3
Q.no 42. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
Q.no 43. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 45. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 46. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
C:
D:
Q.no 47. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 49. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
Q.no 51. Consider a language described in following figure. Which regular expression is used to
represent it?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 52. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
Q.no 53. A PDA machine configuration (p, w, y) can be correctly represented as:
Q.no 54. Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2
is undecidable. Which one of the following is True?
A : P3 is decidable if P1 is reducible to P3
B : P3 is undecidable if P3 is reducible to P2
C : P3 is undecidable if P2 is reducible to P3
Q.no 55. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 56. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 57. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/17
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 58. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
A:
B:
C:
D:
A : Not recursive
C : Regular language
Q.no 60. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
C : 2s complement
D : 10s complement
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/17
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. In accordance to pumping lemma theorem of regular language, Complete the sentence
A : i is greater than 0
B : i is less than 0
A : Recursive Ennumerable
B : Recursive
D : PDA
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Finite Automaton
B : Turing Machine
A : Proof by contradiction
B : Direct proof
C : Proof by induction
D : Proof by analogy
A : Intersection
B : Union
C : Kleene star
D : ALL
A : Turing acceptable
B : Decidable
C : Undecidable
D : NP HARD
A : All problems in P
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Copying a string
B : Deleting a symbol
C : Accepting a pal
D : Inserting a symbol
A:
B:
C:
D:
A : Turing machines
B : Transducer
C : Turing machine rejects if the input does not belong to the language
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 14. Consider the following figure and choose the correct answer from given below
A : star Production
B : Null Production
C : empty Production
D : useless production
Q.no 15. Turing machine can be represented using the following tools:
A : Transition graph
B : Transition table
A : Regular expressions
C : Grammars
D : Finite Automata
Q.no 17. The set generated by below given regular expression is ______________________.
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
A : English Grammar
B : Regular Grammar
Q.no 19. consider a Turing machine defined in following figure and state which statemnt is
A:
B:
C:
D:
Q.no 20. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 21. How many strings can be generated as described in following figure.
A : 35
B : 49
C : 360
D : 720
Q.no 22. Consider the language given in following figure, what type of language it is?
B : Regular language
Q.no 23. Which among the following is not true for 2-way infinte TM?
C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.
Q.no 24. Consider a language given in following figure.CFG used to produce given language is
_____.
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
A:
B:
C:
D:
Q.no 28. Statement 1: Ambiguity is the property of grammar but not the language.
Statement 2: Same language can have more than one grammar.
Which of the following options are correct with respect to the given statements?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 29. If complement of L1 and complement of L2 are regular languages, then L1 dot L2 will
be
A : Regular
B : Non-regular
C : may be regular
D : may be non-regular
A:L
B : L'
C:f
D : empty
Q.no 31. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
C : 22
D : 27
Q.no 32. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.
B : DFA
C : NDFA
A : Regular language
Q.no 34. Consider the CFG given in following figure. Which of the production is useless
A:
B:
C:
D:
Q.no 35. The travelling salesman problem can be solved using _________
A : A spanning tree
D : DFS traversal
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 38. Which among the following cannot be accepted by a regular grammar?
D : L is a set of 0n1n
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 41. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
Q.no 42. Which of the following regular expression resembles the given diagram?
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 44. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
Q.no 45. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 46. Find out which minimal DFA accepts same language as accepted by DFA D shown in
figure
A:
B:
C:
D:
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
A : I and II
B : I and IV
C : II and III
D : II and IV
Q.no 49. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
B:
C:
D:
Q.no 50. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : 2s complement
D : 10s complement
Q.no 51. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 52. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 53. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 54. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
D:
Q.no 55. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:2
D:3
A : Not recursive
C : Regular language
Q.no 57. what is the answer of the question descried in following figure.
A:6
B:4
C:2
D:8
Q.no 59. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 60. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 19/19
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. Which of the technique can be used to prove that a language is non regular?
A : The language accepted by finite automata are the languages denoted by regular expressions
D : For every regular expression there exist a DFA accepting its language
A : Recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Non Recursive
C : Recognizable
D : Non Recognizable
A : TRUE
B : FALSE
C:
D:
C:
D:
Q.no 6. In accordance to pumping lemma theorem of regular language, Complete the sentence
A : i is greater than 0
B : i is less than 0
A : Transition graph
B : Transition table
A : L(R), R(L)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : R, L( R )
C : R,L
D : L ( R) , L
Q.no 9. While converting the context free grammar into chomsky normal form, which of the
following is not necessary
A : Type 3 grammar
B : Type 2 grammar
C : Type 1 grammar
D : Type 0 grammar
A:
B:
C:
D:
A : Turing machines
B : Transducer
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 14. Finite-state acceptors for the nested words can be:
C : ndfa
D : ndpda
A : English Grammar
B : Regular Grammar
Q.no 16. The set generated by below given regular expression is ______________________.
A:
B:
C:
D:
Q.no 17. Which of the technique can be used to prove that a language is non regular?
A : Ardens theorem
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Ogden’s Lemma
C : Pumping Lemma
D : Jordens theorem
Q.no 18. If T1 and T2 are two turing machines. The composite can be represented using the
expression:
A : T1T2
B : T2T1
C : T1 X T2
D : T2T2T1
Q.no 19. Context free grammar is called Type 2 grammar because of ______________ hierarchy.
A : Chomsky
B : Greibach
C : Arden's
D : Backus
Q.no 20. Which of the following data structure is used in design of post machine
A : Stack
B : Array
C : Queue
D : Linked list
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 22. Complete the statement given in following figure to make it true with reference to CFG.
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 24. Consider the given figure .what will be the next ID?
A:
B:
C:
Q.no 25. Consider the grammars given in following figure.and select the correct option.
A:4
B:3
C:2
D:1
Q.no 26. State true or false: Statement: Pumping lemma gives a necessary but not sufficient
condition for a language to be regular.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : TRUE
B : FALSE
C:
D:
Q.no 27. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
A:L
B : L'
C:f
D : empty
Q.no 29. The travelling salesman problem can be solved using _________
A : A spanning tree
D : DFS traversal
Q.no 30. Consider the language given in following figure, what type of language it is?
B : Regular language
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 31. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
C : 22
D : 27
Q.no 32. Which of the following one can relate to the given statement: Statement: If n items are
put into m containers, with n>m, then atleast one container must contain more than one item
C : Count principle
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 37. With refernce to given diagram ,Which of the statements are false?
A : 1 and 3 only
B : 2 and 4 only
C : 2 and 3 only
D : 3 and 4 only
Q.no 38. Consider the CFG given in following figure. Which of the production is useless
A:
B:
C:
D:
A:
B:
C:
D:
A : NP
B:P
C : NP Hard
D : NP Complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 41. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
C : 2s complement
D : 10s complement
Q.no 42. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 43. Consider a regular language described in following figure. Which regular expression is
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
A : Not recursive
C : Regular language
Q.no 46. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
B:
C:
D:
Q.no 47. Consider the following three regular expressions and two statements shown in below
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
A:
B:
C:
D:
Q.no 49. Which of the following regular expression resembles the given diagram?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 50. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 52. consider the problem X given in following figure. And describe about it.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : X is decidable
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
A:
B:
C:
D:
Q.no 55. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 56. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 57. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
Q.no 59. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : Only a is true
Q.no 60. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
A : P, NP
B : NP, NP hard
C : P, P complete
D : NP Hard,P
Q.no 2. While converting the context free grammar into chomsky normal form, which of the
following is not necessary
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Polynomial
B : Non polynomial
C : Logarithmic
D : Non Logarithmic
Q.no 4. Which of the following data structure is used in design of push down automata
A : Stack
B : Array
C : Queue
D : Linked list
A : Copying a string
B : Deleting a symbol
C : Accepting a pal
D : Inserting a symbol
A : Recursive
B : Non Recursive
C : Recognizable
D : Non Recognizable
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 8. Which of the technique can be used to prove that a language is non regular?
A : The language accepted by finite automata are the languages denoted by regular expressions
D : For every regular expression there exist a DFA accepting its language
Q.no 9. Which of the following are the actions that operates on stack top?
A : Pushing
B : Popping
C : Replacing
A:
B:
C:
D:
Q.no 11. Finite state machine with output capability can be used to add two given integer in
binary representation.
A : TRUE
B : FALSE
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : NFA to DFA
Q.no 13. The finite automata is called a NFA when there exists __________for a specific input
from current state to next state
A : single path
B : multiple paths
D : zero path
A : CSL is less than Unrestricted is less than CFL is less than Regular language
B : Regular language is less than CFL is less than CSL is less than Unrestricted
C : CFL is less than CSL is less than Unrestricted is less than Regular language
D : Regular language is less than CSL is less than CFL is less than Unrestricted
Q.no 16. Which among the following is incorrect with reference to a derivation tree?
Q.no 17. While applying Pumping lemma over a language, we consider a string w that belong to
L and fragment it into _________ parts.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:2
B:5
C:3
D:6
A : Turing machines
B : Transducer
Q.no 19. Which of the technique can be used to prove that a language is non regular?
A : Ardens theorem
B : Ogden’s Lemma
C : Pumping Lemma
D : Jordens theorem
A:6
B:7
C:8
D:5
Q.no 21. Which of the following pairs have different expressive power?
C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine
Q.no 22. Consider the language given in following figure, what type of language it is?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Regular language
Q.no 23. Consider the given figure .what will be the next ID?
A:
B:
C:
Q.no 24. Consider the grammars given in following figure.and select the correct option.
A:4
B:3
C:2
D:1
Q.no 25. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?
A : Regular language
Q.no 28. If complement of L1 and complement of L2 are regular languages, then L1 dot L2 will
be
A : Regular
B : Non-regular
C : may be regular
D : may be non-regular
Q.no 29. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
Q.no 30. With refernce to given diagram ,Which of the statements are false?
A : 1 and 3 only
B : 2 and 4 only
C : 2 and 3 only
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : 3 and 4 only
Q.no 32. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.
B : DFA
C : NDFA
B : Linear programming
D : Turing Machine
Q.no 36. In context to the process of removing useless symbols, which of the following is correct?
Q.no 37. PDA is more powerful than ____ but less powerful than ________.
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 39. Complete the statement given in following figure to make it true with reference to CFG.
B : Halting Problem
C : Hitting Set
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : Prims Algorithm
Q.no 41. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
Q.no 42. Consider a regular language described in following figure. Which regular expression is
A:
B:
C:
D:
Q.no 43. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 45. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 46. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 47. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
A : I and II
B : I and IV
C : II and III
D : II and IV
Q.no 50. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 52. what is the answer of the question descried in following figure.
A:6
B:4
C:2
D:8
Q.no 53. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 54. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
A:
B:
C:
D:
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 56. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 57. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
Q.no 58. A PDA machine configuration (p, w, y) can be correctly represented as:
Q.no 59. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 60. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
C : 2s complement
D : 10s complement
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
A : Type 3 grammar
B : Type 2 grammar
C : Type 1 grammar
D : Type 0 grammar
C:
D:
Q.no 3. State true or false. Regular Expressions can be used with XML checkpoints
A : TRUE
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : FALSE
C:
D:
Q.no 4. Finite state machine with output capability can be used to add two given integer in
binary representation.
A : TRUE
B : FALSE
C:
D:
A : Proof by contradiction
B : Direct proof
C : Proof by induction
D : Proof by analogy
A:
B:
C:
D:
D : Generic grammar
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : In leftmost derivation always leftmost nonterminal is chosen to obtain next step of derivation
B : In Rightmost derivation always rightmost nonterminal is chosen to obtain next step of derivation
Q.no 9. Which among the following is incorrect with reference to a derivation tree?
B : Moore machine has five tuples and Mealy machine has six tuples
C : Moore machine has six tuples and Mealy machine has five tuples
Q.no 11. If there exist more than on parse tree for the same string from the given grammar then
that grammar is said to be _______________
A : Recursive Grammar
B : Linear Grammar
C : Regular grammar
D : ambiguous grammar
A : Kleene
B : Union
C : Complement
D : Concatenation
Q.no 13. If T1 and T2 are two turing machines. The composite can be represented using the
expression:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : T1T2
B : T2T1
C : T1 X T2
D : T2T2T1
Q.no 14. An algorithm is called efficient if it runs in ____________ time on a serial computer.
A : Polynomial
B : Non polynomial
C : Logarithmic
D : Non Logarithmic
Q.no 15. A language L is subset of alphabet is said to be TDL if there is TM say M which always
halts on every w is element of alphabet if w is element L with an answer YES however if w is not
element of L then M halts with answer NO then that language is known as _____________
Q.no 16. The set generated by below given regular expression is ______________________.
A:
B:
C:
D:
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 18. Which of the following are the actions that operates on stack top?
A : Pushing
B : Popping
C : Replacing
Q.no 20. Which of the following data structure is used in design of push down automata
A : Stack
B : Array
C : Queue
D : Linked list
Q.no 21. Which among the following is not true for 2-way infinte TM?
C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 22. Describe the language generated by finite state machine given below.
Q.no 23. How many strings can be generated as described in following figure.
A : 35
B : 49
C : 360
D : 720
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 26. Statement 1: Ambiguity is the property of grammar but not the language.
Statement 2: Same language can have more than one grammar.
Which of the following options are correct with respect to the given statements?
Q.no 27. Which among the following cannot be accepted by a regular grammar?
D : L is a set of 0n1n
Q.no 28. How many states are required to design a deterministic finite automata which accept
strings that end with bb.
A:4
B:3
C:2
D:1
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 30. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
C : 22
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : 27
Q.no 32. Fill in the blank with the most appropriate option.
Statement: In theory of computation, abstract machines are often used in ___________ regarding
computability or to analyze the complexity of an algorithm.
A : Thought experiments
B : Principle
C : Hypothesis
Q.no 33. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?
Q.no 34. Consider a language given in following figure.CFG used to produce given language is
_____.
A:
B:
C:
D:
B : Linear programming
A : NP
B:P
C : NP Hard
D : NP Complete
A:
B:
C:
D:
Q.no 38. Which of the following options is correct? Statement 1 Initial State of NFA is Initial
State of DFA. Statement 2 The final state of DFA will be every combination of final state of NFA.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
A : Regular language
Q.no 41. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
Q.no 42. what is the answer of the question descried in following figure.
A:6
B:4
C:2
D:8
Q.no 44. Consider the statement given in following figure and describe the language L. L is
________.
Q.no 45. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 46. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 47. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
Q.no 48. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 49. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Computable
D : Recognizable
Q.no 50. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
D:
Q.no 51. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
B:
C:
D:
Q.no 52. Consider a regular language described in following figure. Which regular expression is
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 53. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
Q.no 54. Which of the following regular expression resembles the given diagram?
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 55. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
Q.no 56. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
Q.no 57. Find out which minimal DFA accepts same language as accepted by DFA D shown in
figure
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 58. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
A : I and II
B : I and IV
C : II and III
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : II and IV
Q.no 60. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 19/19
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. Consider the following figure and choose the correct answer from given below
A : star Production
B : Null Production
C : empty Production
D : useless production
A : Regular expressions
C : Grammars
D : Finite Automata
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 3. The finite automata is called a NFA when there exists __________for a specific input
from current state to next state
A : single path
B : multiple paths
D : zero path
C : Non-Deterministic
A : Gedit
B : JFLAP
C : FAUTO
D : grep
Q.no 7. If there exist more than on parse tree for the same string from the given grammar then
that grammar is said to be _______________
A : Recursive Grammar
B : Linear Grammar
C : Regular grammar
D : ambiguous grammar
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : TRUE
B : FALSE
C:
D:
A : Binary tree
C : Parse tree
Q.no 10. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
A : More
B : Less
C : No way
D : Very Much
A : TRUE
B : FALSE
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : CSL is less than Unrestricted is less than CFL is less than Regular language
B : Regular language is less than CFL is less than CSL is less than Unrestricted
C : CFL is less than CSL is less than Unrestricted is less than Regular language
D : Regular language is less than CSL is less than CFL is less than Unrestricted
Q.no 15. Finite state machine with output capability can be used to add two given integer in
binary representation.
A : TRUE
B : FALSE
C:
D:
Q.no 16. Complete the statement given in following figure with reference to definiton of CFG.
A:V
B:T
C:
D:
Q.no 17. While converting the context free grammar into chomsky normal form, which of the
following is not necessary
A:
B:
C:
D:
Q.no 19. A problem is called __________ if its has an efficient algorithm for itself.
A : Tractable
B : Intractable
C : Computational
D : Computable
Q.no 20. Which kind of proof is used to prove the regularity of a language?
A : Proof by contradiction
B : Direct proof
C : Proof by induction
D : Proof by analogy
Q.no 21. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
Q.no 22. While converting the context free grammar into Greibach normal form, which of the
following is necessary
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 24. For a machine to surpass all the letters of alphabet excluding vowels, how many number
of states in DFA would be required?
A:3
B:2
C : 22
D : 27
A : For every non-deterministic Turing machine, there exists an equivalent deterministic Turing
machine.
Q.no 26. Statement 1: Ambiguity is the property of grammar but not the language.
Statement 2: Same language can have more than one grammar.
Which of the following options are correct with respect to the given statements?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
B : Linear programming
Q.no 29. If there exists a TM which when applied to any problem in the class, terminates, if
correct answer is yes and may or may not terminate otherwise is called
A : Stable
B : Unsolvable
C : Partially solvable
D : Unstable
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 31. Consider the given figure .what will be the next ID?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
Q.no 32. Turing machine is more powerful than Finite State Machine because
Q.no 35. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : NP
B:P
C : NP Hard
D : NP Complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 39. The travelling salesman problem can be solved using _________
A : A spanning tree
D : DFS traversal
Q.no 40. X is a simple mathematical model of a computer. X has unrestricted and unlimited
memory. X is a FA with R/W head. X can have an infinite tape divided into cells, each cell
holding one symbol.
Name X?
C : Turing machines
A:
B:
C:
D:
Q.no 42. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
A:
B:
C:
D:
Q.no 44. Find out which minimal DFA accepts same language as accepted by DFA D shown in
figure
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
Q.no 46. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
B:
C:
D:
Q.no 47. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
Q.no 48. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
A:
B:
C:
D:
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 51. A PDA machine configuration (p, w, y) can be correctly represented as:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 52. Consider the finite automata and string given in following figure.The set of reachable
A:
B:
C:
D:
Q.no 53. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Not recursive
C : Regular language
Q.no 55. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
D:
Q.no 56. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:0
B:1
C:2
D:3
Q.no 57. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 58. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
C:
D:
Q.no 59. Consider the following three regular expressions and two statements shown in below
A:
B:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 60. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
C : Turing machine rejects if the input does not belong to the language
A : Recursive
B : Non Recursive
C : Recognizable
D : Non Recognizable
Q.no 3. Non deterministic finite automata to deterministic finite automata conversion is done via
B : Warshalls Algorithm
C : Ardens theorem
D : Prims Algorithm
A : TRUE
B : FALSE
C:
D:
A:5
B:4
C:3
D:6
A : Gedit
B : JFLAP
C : FAUTO
D : grep
Q.no 7. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
A : More
B : Less
C : No way
D : Very Much
Q.no 8. Finite state machine with output capability can be used to add two given integer in
binary representation.
A : TRUE
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : FALSE
C:
D:
A : TRUE
B : FALSE
C:
D:
Q.no 10. Which of the following are the actions that operates on stack top?
A : Pushing
B : Popping
C : Replacing
A : TRUE
B : FALSE
C:
D:
Q.no 12. The set generated by below given regular expression is ______________________.
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
B : Moore machine has five tuples and Mealy machine has six tuples
C : Moore machine has six tuples and Mealy machine has five tuples
Q.no 16. Which among the following is incorrect with reference to a derivation tree?
A : CSL is less than Unrestricted is less than CFL is less than Regular language
B : Regular language is less than CFL is less than CSL is less than Unrestricted
C : CFL is less than CSL is less than Unrestricted is less than Regular language
D : Regular language is less than CSL is less than CFL is less than Unrestricted
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:0
B:1
C:2
D:3
Q.no 19. If there exists a language L, for which there exists a TM, T, that accepts every word in L
and either rejects or loops for every word that is not in L, is called
A : Recursive
B : Recursively Enumerable
C : NP HARD
D : NP Complete
A : Finite Automaton
B : Turing Machine
Q.no 21. Which among the following cannot be accepted by a regular grammar?
D : L is a set of 0n1n
Q.no 22. Fill in the blank with the most appropriate option.
Statement: In theory of computation, abstract machines are often used in ___________ regarding
computability or to analyze the complexity of an algorithm.
A : Thought experiments
B : Principle
C : Hypothesis
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : either both are final states or both are non final states
Q.no 24. Consider the grammars given in following figure.and select the correct option.
A:4
B:3
C:2
D:1
Q.no 26. In context to the process of removing useless symbols, which of the following is correct?
A:L
B : L'
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:f
D : empty
Q.no 28. Which of the functions are not performed by the turing machine after reading a
symbol?
Q.no 29. Consider the language given in following figure, what type of language it is?
B : Regular language
Q.no 30. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A : rejected
C : accepted
Q.no 31. Statement 1: Ambiguity is the property of grammar but not the language.
Statement 2: Same language can have more than one grammar.
Which of the following options are correct with respect to the given statements?
Q.no 32. Which of the following is not a Non deterministic turing machine?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : Unsolvable
Q.no 33. With refernce to given diagram ,Which of the statements are false?
A : 1 and 3 only
B : 2 and 4 only
C : 2 and 3 only
D : 3 and 4 only
Q.no 34. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?
Q.no 35. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.
B : DFA
C : NDFA
Q.no 36. Turing machine is more powerful than Finite State Machine because
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 38. While converting the context free grammar into Greibach normal form, which of the
following is necessary
Q.no 39. Consider the CFG given in following figure. Which of the production is useless
A:
B:
C:
D:
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 41. Consider the statement given in following figure and describe the language L. L is
________.
Q.no 42. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
A:
B:
C:
D:
Q.no 43. Which of the following pair of regular expressions is not equivalent ?
A:
B:
C:
D:
Q.no 44. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
Q.no 46. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 47. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
Q.no 48. Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2
is undecidable. Which one of the following is True?
A : P3 is decidable if P1 is reducible to P3
B : P3 is undecidable if P3 is reducible to P2
C : P3 is undecidable if P2 is reducible to P3
Q.no 49. Consider the following three regular expressions and two statements shown in below
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 50. Consider the mealy machine shown in following figure,what is the output generated by
it?
A : Reverse of a number
B : 1s complement
C : 2s complement
D : 10s complement
Q.no 51. Which Transition table of Turing Machine is correct for the following problem
"Design a TM to find 2s complement of a binary machine"
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 52. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
D:
Q.no 53. Consider the regular expression given in following figure, find its equivalent regular
expression.
A:
B:
C:
D:
Q.no 54. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B : Regular
Q.no 55. consider the problem X given in following figure. And describe about it.
A : X is decidable
Q.no 56. Find out which minimal DFA accepts same language as accepted by DFA D shown in
figure
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
Q.no 58. Which Transition table of Turing Machine is correct to check well formedness of
parentheses
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/19
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 59. Consider a language described in following figure. Which regular expression is used to
represent it?
A:
B:
C:
D:
Q.no 60. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 19/19
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. State true or false. Regular Expressions can be used with XML checkpoints
A : TRUE
B : FALSE
C:
D:
Q.no 2. If w belongs to L of G, for some CFG, then w has a parse tree, which defines the syntactic
structure of w. w could be
A : Program
B : SQL query
C : XML document
D : All of these
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : CSL is less than Unrestricted is less than CFL is less than Regular language
B : Regular language is less than CFL is less than CSL is less than Unrestricted
C : CFL is less than CSL is less than Unrestricted is less than Regular language
D : Regular language is less than CSL is less than CFL is less than Unrestricted
A : In leftmost derivation always leftmost nonterminal is chosen to obtain next step of derivation
B : In Rightmost derivation always rightmost nonterminal is chosen to obtain next step of derivation
A : Transition graph
B : Transition table
Q.no 6. Which of the technique can be used to prove that a language is non regular?
A : Ardens theorem
B : Ogden’s Lemma
C : Pumping Lemma
D : Jordens theorem
Q.no 7. _________ is the class of decision problems that can be solved by non-deterministic
polynomial algorithms?
A : NP
B:P
C : Hard
D : Complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : Current state
C : on stack contents
D : uses all current state ,next input symbol and top of the stack
A : Proof by contradiction
B : Direct proof
C : Proof by induction
D : Proof by analogy
A : All problems in P
Q.no 11. Non deterministic finite automata to deterministic finite automata conversion is done
via
B : Warshalls Algorithm
C : Ardens theorem
D : Prims Algorithm
A : 5 tuples
B : 6 tuples
C : 4 tuples
D : 7 tuples
Q.no 13. A two-way infinite tape turing machine is ________ superior than the basic model of the
turing machine in terms of power.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : More
B : Less
C : No way
D : Very Much
Q.no 14. Which of the following data structure is used in design of post machine
A : Stack
B : Array
C : Queue
D : Linked list
Q.no 15. If L1, L2 are regular and op(L1, L2) is also regular, then L1 and L2 are said to be
____________ under an operation op.
A : Open
B : Closed
C : Decidable
D : Not decidable
A:0
B:1
C:2
D:3
Q.no 17. Finite-state acceptors for the nested words can be:
C : ndfa
D : ndpda
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 19. Those problems require large amount of computational resources that practically not
feasible to solve these problems, are known as _________
A : Decidable
B : Undecidable
C : Tractable
D : Intractable
Q.no 20. Which of the technique can be used to prove that a language is non regular?
A : The language accepted by finite automata are the languages denoted by regular expressions
D : For every regular expression there exist a DFA accepting its language
Q.no 21. Consider the statement given in following figure and select the option which is true.
A : NP complete is equal to NP
B:
C : NP hard is equal to NP
D : P is equal to NP complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D : Turing Machine
Q.no 23. Consider a language given in following figure.CFG used to produce given language is
_____.
A:
B:
C:
D:
Q.no 24. Consider the language given in following figure, what type of language it is?
B : Regular language
Q.no 25. How many states are required to design a deterministic finite automata which accept
strings that end with bb.
A:4
B:3
C:2
D:1
Q.no 26. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.
B : DFA
C : NDFA
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 28. Which of the following one can relate to the given statement: Statement: If n items are
put into m containers, with n>m, then atleast one container must contain more than one item
C : Count principle
Q.no 29. With refernce to given diagram ,Which of the statements are false?
A : 1 and 3 only
B : 2 and 4 only
C : 2 and 3 only
D : 3 and 4 only
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 7/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 30. The travelling salesman problem can be solved using _________
A : A spanning tree
D : DFS traversal
A : For every non-deterministic Turing machine, there exists an equivalent deterministic Turing
machine.
Q.no 33. X is a simple mathematical model of a computer. X has unrestricted and unlimited
memory. X is a FA with R/W head. X can have an infinite tape divided into cells, each cell
holding one symbol.
Name X?
C : Turing machines
Q.no 34. Consider the CFG given in following figure.Its equivalent simplified grammar is _____.
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
B : Linear programming
Q.no 36. If there exists a TM which when applied to any problem in the class, terminates, if
correct answer is yes and may or may not terminate otherwise is called
A : Stable
B : Unsolvable
C : Partially solvable
D : Unstable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : NP
B:P
C : NP Hard
D : NP Complete
Q.no 39. Which of the following pairs have different expressive power?
C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine
Q.no 40. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
Q.no 41. Number of states require to simulate a computer with memory capable of storing 3
words each of length 8.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 42. The problems which have no algorithm, regardless of whether or not they are accepted
by a turing machine that fails to halts on some input are referred as:
A : Decidable
B : Undecidable
C : Computable
D : Recognizable
Q.no 43. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
Q.no 44. Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2
is undecidable. Which one of the following is True?
A : P3 is decidable if P1 is reducible to P3
B : P3 is undecidable if P3 is reducible to P2
C : P3 is undecidable if P2 is reducible to P3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 45. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
D:
A:
B:
C:
D:
Q.no 48. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Complement of L2 is recursive
Q.no 49. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
Q.no 50. Consider the CFG given below,how many variables are reachable from starting symbol
in it.
A:0
B:1
C:2
D:3
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 52. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
A : I and II
B : I and IV
C : II and III
D : II and IV
Q.no 54. Consider the following three regular expressions and two statements shown in below
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
A : Not recursive
C : Regular language
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
Q.no 57. consider the problem X given in following figure. And describe about it.
A : X is decidable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/16
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 58. A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting
state. The tape alphabet of M is (0, 1, B) and its input alphabet is 0, 1. The symbol B is the blank
symbol used to indicate end of an input string. The transition function of M is described in the
shown table.
The table is interpreted as:
The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the
current tape square, then it writes 1 on the same tape square, moves its tape head one position to
the right and transitions to state q1.
Q.no 59. A PDA machine configuration (p, w, y) can be correctly represented as:
Q.no 60. Given a NFA with N states, the maximum number of states in an equivalent minimized
DFA is at least
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/16
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Seat No -
Total number of questions : 60
10276_THEORY OF COMPUTATION
Time : 1hr
Max Marks : 50
N.B
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
Q.no 1. While applying Pumping lemma over a language, we consider a string w that belong to L
and fragment it into _________ parts.
A:2
B:5
C:3
D:6
A : Binary tree
C : Parse tree
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 1/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 4. Those problems require large amount of computational resources that practically not
feasible to solve these problems, are known as _________
A : Decidable
B : Undecidable
C : Tractable
D : Intractable
A:
B:
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 2/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : In leftmost derivation always leftmost nonterminal is chosen to obtain next step of derivation
B : In Rightmost derivation always rightmost nonterminal is chosen to obtain next step of derivation
A : Recursive Ennumerable
B : Recursive
D : PDA
A : Turing acceptable
B : Decidable
C : Undecidable
D : NP HARD
Q.no 10. Minimum number of productions required to produce the language given in following
figure is ____.
A:3
B:7
C:5
D:6
Q.no 11. In accordance to pumping lemma theorem of regular language, Complete the sentence
A : i is greater than 0
B : i is less than 0
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 3/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 12. Context free grammar is called Type 2 grammar because of ______________ hierarchy.
A : Chomsky
B : Greibach
C : Arden's
D : Backus
Q.no 13. Complete the statement given in following figure with reference to definiton of CFG.
A:V
B:T
C:
D:
Q.no 14. What is the Regular Expression Matching Zero or More Specific Characters
A:
B:
C:
D:
Q.no 15. If T1 and T2 are two turing machines. The composite can be represented using the
expression:
A : T1T2
B : T2T1
C : T1 X T2
D : T2T2T1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 4/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C : Turing machine rejects if the input does not belong to the language
A : Current state
C : on stack contents
D : uses all current state ,next input symbol and top of the stack
A:6
B:7
C:8
D:5
A : x,y
B:x
C:y
D : xy
Q.no 21. If the PDA does not stop on an accepting state and the stack is not empty, the string is:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 5/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A : rejected
C : accepted
B : Halting Problem
C : Hitting Set
D : Prims Algorithm
Q.no 23. The ability for a system of instructions to simulate a Turing Machine is called
_________
A : Turing Completeness
B : Simulation
C : Turing Halting
D : Computability
Q.no 24. X is a simple mathematical model of a computer. X has unrestricted and unlimited
memory. X is a FA with R/W head. X can have an infinite tape divided into cells, each cell
holding one symbol.
Name X?
C : Turing machines
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 6/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 26. The travelling salesman problem can be solved using _________
A : A spanning tree
D : DFS traversal
A:L
B : L'
C:f
D : empty
Q.no 28. Which of the following options is correct? Statement 1 Initial State of NFA is Initial
State of DFA. Statement 2 The final state of DFA will be every combination of final state of NFA.
Q.no 29. PDA is more powerful than ____ but less powerful than ________.
Q.no 30. Complete the statement given in following figure to make it true with reference to CFG.
Q.no 32. The construction time for DFA from an equivalent NFA (m number of node)is:
A:
B:
C:
D:
A : Regular language
Q.no 34. Which among the following is not true for 2-way infinte TM?
C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 8/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 35. Which of the functions are not performed by the turing machine after reading a
symbol?
C : Determining of a universal turing machine can be written for fewer than k instructions for some k
Q.no 38. With reference to pumping lemma of regular language,answer the following question
A:x
B:y
C:z
D : mod xy
Q.no 39. State true or false: Statement: Pumping lemma gives a necessary but not sufficient
condition for a language to be regular.
A : TRUE
B : FALSE
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 9/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
C:
D:
Q.no 40. Consider the given figure .what will be the next ID?
A:
B:
C:
Q.no 41. Consider the CFG and statements about it as shown in following figure.Which of the
statement is true about G among it
D : Only a is true
Q.no 42. Two languages L1 and L2 are given in following figure. Which statement is FALSE
about it?
A : L2 is context free
C : Complement of L2 is recursive
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 10/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 43. what is the answer of the question descried in following figure.
A:6
B:4
C:2
D:8
Q.no 44. Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2
is undecidable. Which one of the following is True?
A : P3 is decidable if P1 is reducible to P3
B : P3 is undecidable if P3 is reducible to P2
C : P3 is undecidable if P2 is reducible to P3
Q.no 45. A PDA machine configuration (p, w, y) can be correctly represented as:
Q.no 46. Consider the grammar given in following figure, which regular expression it represents?
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 11/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 47. Consider the statement given in following figure and describe the language L. L is
________.
Q.no 48. Let S be an NP-complete problem and Q and R be two other problems not known to be
in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of
the given statements is true?
A : R is NP complete
B : R is NP hard
C : Q is NP complete
D : Q is NP hard
A : 3 only
B : 3 and 4 only
C : 1, 2 and 3 only
D : 2 and 3 only
A:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 12/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
B:
C:
D:
Q.no 52. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,
A : L is recursive
Q.no 53. Find out which minimal DFA accepts same language as accepted by DFA D shown in
figure
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 13/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
D:
Q.no 54. Consider the CFG given in following figure, Which language is generated by it?
A:
B:
C:
D:
Q.no 55. Which Transition Diagram is correct for the following problem
"Design a TM that erases all non blank symbols on the tape, where the sequence of non-blank
symbols does not contain any blank symbols B in between. Consider Alphabet a,b.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 14/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
A:
B:
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 15/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
D:
Q.no 56. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is
A : Not recursive
B : Regular
A : 1, 2, 3, 4
B : 1, 2
C : 2,3,4
D : 3, 4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 16/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 58. Which of the following regular expression resembles the given diagram?
A:
B:
C:
D:
Q.no 59. Consider the CFG given in following figure. Which sring is generated by it?
A : aaaabb
B : aabbbb
C : aabbab
D : abbbba
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 17/18
12/26/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1
Q.no 60. consider the problem X given in following figure. And describe about it.
A : X is decidable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=1575&code=1052000&showTest=320&actForm=edit&set=1 18/18
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4