Toc Wheebox

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 437

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. CFG is not closed under

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

Q.no 3. Pushdown automata consists of _____

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

Q.no 4. Which of the following statement is correct

A : Moore machine and Mealy machine both has five 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

D : Moore machine and Mealy machine both has six tuples

Q.no 5. 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 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

Q.no 8. Which of the functions can a turing machine not perform?

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

Q.no 9. Which of the following statement is not true?

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

C : In derivation of string any nonterminal is selected to obtain next step of derivation

D : In derivation tree root node is always labelled by starting symbol

Q.no 10. Linear Bounded Automaton is a:

A : Finite Automaton

B : Turing Machine

C : Push down Automaton

D : Deterministic Finite Automata

Q.no 11. The set generated by below given regular expression is ______________________.

A:

B:

C:

D:

Q.no 12. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input


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

Q.no 13. Which of the following are not in NP?

A : All problems in P

B : Boolean Satisfiability problems

C : Integer factorization problem

D : None of the mentioned

Q.no 14. The statement A TM can not solve halting problem is

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 16. Which of the following statement is CORRECT?

A : A moore machine has no accepting states

B : A moore machine has accepting states

C : A Mealy machine has accepting states

D : Both machine has accepting states

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 : Elimination of null production

B : Elimination of unit production

C : converting a given grammar to chomsky normal form

D : converting a given grammar to greibach normal form

Q.no 19. Which of the following is correct for Chomsky hierarchy?

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

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

Q.no 22. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

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

D : on all current state, current input and next state

Q.no 23. Which of the following is true for the language?

A : It is not accepted by a Turing Machine

B : It is regular but not context-free

C : It is context-free but not regular

D : It is neither regular nor context-free, but accepted by a Turing machine

Q.no 24. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

Q.no 25. Turing machine is more powerful than Finite State Machine because

A : Tape movement is confined to one direction

B : It has no finite state

C : It has the capability to remember arbitrarily long sequences of input symbols

D : It has tape symbols

Q.no 26. Which of the functions are not performed by the turing machine after reading a
symbol?

A : Writes the symbol

B : Moves the tape one cell left/right

C : Proceeds with next instruction or halts

D : Push the input in stack

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

D : All of the mentioned

Q.no 28. Which of the following pairs have different expressive power?

A : DFA AND NDFA

B : DPDA AND NPDA

C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine

D : single tape turing machine and multiple tape turing machine

Q.no 29. PDA is more powerful than ____ but less powerful than ________.

A : DFA and NFA

B : Turing machine and DFA

C : DFA and turing machine

D : Mealy machine and DFA

Q.no 30. Which among the following cannot be accepted by a regular grammar?

A : L is a set of numbers divisible by 2

B : L is a set of binary complement

C : L is a set of string with odd number of 0

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:

D : None of the mentioned

Q.no 33. Describe the language generated by finite state machine given below.

A : Any string of odd number of a's

B : Any string of odd number of b’s

C : Any string of even number of a’s and odd number of b’s

D : Any string of odd number of a’s and odd number of b’s

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.

A : Push Down automata

B : DFA

C : NDFA

D : Deterministic Turing machine

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

Q.no 36. Simplify the following identity?

A:

B:

C:

D:

Q.no 37. In context to the process of removing useless symbols, which of the following is correct?

A : We remove the Nullable variables

B : We eliminate the unit productions

C : We eliminate products which yield no terminals

D : We eliminate the both unit productions and Nullable variables

Q.no 38. Which of the given problems are NP-complete?

A : Node cover problems

B : Directed Hamilton Circuit Problem

C : Both (a) and (b)

D : Turing Machine

Q.no 39. Consider the language given in following figure, what type of language it is?

A : Context free language

B : Regular language

C : Both CFL and RL


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

D : non context free language

Q.no 40. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

Q.no 41. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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:

Q.no 43. Which of the following problems are decidable?

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

states for the given input string is ____________.

A:

B:

C:

D:

Q.no 45. CFG for balanced parenthesis

A:

B:

C:

D:

Q.no 46. Consider the following three regular expressions and two statements shown in below

figure. Choose its correct answer from given options.

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 50. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

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:

Q.no 52. What is the output of below given regular expression?

A:

B:

C:

D:

Q.no 53. Which of the following is/are Undecidable?

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

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

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

________.

A : Decidable and Recursively Enumerable

B : Undecidable but Recursively Enumerable

C : Undecidable and Not Recursively Enumerable

D : Decidable but not Recursively Enumerable

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:

Q.no 59. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

Q.no 60. A PDA machine configuration (p, w, y) can be correctly represented as:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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

Answer for Question No 1. is c

Answer for Question No 2. is b

Answer for Question No 3. is d

Answer for Question No 4. is d

Answer for Question No 5. is a

Answer for Question No 6. is a

Answer for Question No 7. is b

Answer for Question No 8. is d

Answer for Question No 9. is c

Answer for Question No 10. is b

Answer for Question No 11. is b

Answer for Question No 12. is b

Answer for Question No 13. is d

Answer for Question No 14. is a

Answer for Question No 15. is c

Answer for Question No 16. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is a

Answer for Question No 18. is d

Answer for Question No 19. is b

Answer for Question No 20. is a

Answer for Question No 21. is a

Answer for Question No 22. is b

Answer for Question No 23. is d

Answer for Question No 24. is a

Answer for Question No 25. is c

Answer for Question No 26. is d

Answer for Question No 27. is d

Answer for Question No 28. is b

Answer for Question No 29. is c

Answer for Question No 30. is d

Answer for Question No 31. is a

Answer for Question No 32. is d

Answer for Question No 33. is d


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is a

Answer for Question No 35. is d

Answer for Question No 36. is a

Answer for Question No 37. is c

Answer for Question No 38. is c

Answer for Question No 39. is d

Answer for Question No 40. is d

Answer for Question No 41. is b

Answer for Question No 42. is d

Answer for Question No 43. is d

Answer for Question No 44. is a

Answer for Question No 45. is a

Answer for Question No 46. is a

Answer for Question No 47. is b

Answer for Question No 48. is b

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is b

Answer for Question No 52. is b

Answer for Question No 53. is d

Answer for Question No 54. is d

Answer for Question No 55. is a

Answer for Question No 56. is b

Answer for Question No 57. is b

Answer for Question No 58. is a

Answer for Question No 59. is b

Answer for Question No 60. is a

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

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:

Q.no 3. NFA in its name has non-deterministic because of _____________________

A : The result is undetermined

B : The choice of path is non-deterministic

C : The state to be transited next is non-deterministic

D : The choice of path is deterministic

Q.no 4. Which of the functions can a turing machine not perform?

A : Copying a string

B : Deleting a symbol

C : Accepting a pal

D : Inserting a symbol

Q.no 5. The value of n if turing machine is defined using n-tuples:

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 _____________

A : Context Free Language

B : Turing Acceptable Language

C : Recursively Enumerable Language

D : Turing Decidable Language


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. 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

B : For every DFA there is a regular expression denoting its language

C : For a regular expression r, there does not exist NFA with L (r )

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

C : only two paths

D : zero path

Q.no 9. A deterministic turing machine is:

A : Ambiguous Turing Machine

B : Unambiguous Turing Machine

C : Non-Deterministic

D : Deterministic Finite Automata

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

Q.no 11. Which of the following are not in NP?

A : All problems in P

B : Boolean Satisfiability problems

C : Integer factorization problem

D : None of the mentioned

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. A PDA chooses the next move based on

A : Current state

B : Next input symbol

C : on stack contents

D : uses all current state ,next input symbol and top of the stack

Q.no 13. Moore machine is an application of

A : Finite Automata without output

B : Finite Automata with output

C:

D:

Q.no 14. Turing machine can be represented using the following tools:

A : Transition graph

B : Transition table

C : Queue and Input tape

D : All of the mentioned

Q.no 15. The generators of languages are

A : Regular expressions

B : Finite State Machine

C : Grammars

D : Finite Automata

Q.no 16. Regular expression x or y denotes the set

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

always true about it.

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 20. Which of the following statement is not true

A : Type 0 grammar is called unrestricted grammar

B : Type 3 grammar is recognized by FA

C : Chomsky hierarchy define only one grammar

D : Type 3 grammar is called as regular grammar


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 21. Describe the language generated by finite state machine given below.

A : Any string of odd number of a's

B : Any string of odd number of b’s

C : Any string of even number of a’s and odd number of b’s

D : Any string of odd number of a’s and odd number of b’s

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.

A : Statement 1 is true and Statement 2 is true

B : Statement 1 is true and Statement 2 is false

C : Statement 1 can be true and Statement 2 is true

D : Statement 1 is false and Statement 2 is also false

Q.no 23. Which of the following statements are correct

A : Statement 1 and 2 both are correct

B : Statement 1 is false but 2 is correct

C : Statement 1 and 2 both are false

D : Statement 1 is correct but 2 is false

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

Q.no 25. Simplify the following identity?

A:

B:

C:

D:

Q.no 26. Consider a CFG given below.Corrsponding CFL is consists of ____________.

A : All length Palindromes

B : Odd length Palindromes

C : Even length Palindromes

D : prime number length palindromes

Q.no 27. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?

A : X will always be a better choice for small inputs

B : X will always be a better choice for large inputs

C : Y will always be a better choice for small inputs

D : X will always be a better choice for all inputs

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 29. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

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

Q.no 31. What is the transition function of below mentioned machine

A:

B:

C:

D:

Q.no 32. Which among the following cannot be accepted by a regular grammar?

A : L is a set of numbers divisible by 2


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 : L is a set of binary complement

C : L is a set of string with odd number of 0

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:

Q.no 34. Which of the following is a P-complete type of problem?

A : Circuit Value problem

B : Linear programming

C : Context free grammar membership

D : All of the mentioned

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

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

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:

Q.no 38. Which of the following statements is False?

A : For every non-deterministic Turing machine, there exists an equivalent deterministic Turing
machine.

B : Turing recognizable languages are closed under union and complementation.

C : Turing decidable languages are closed under intersection


and complementation.

D : Turing recognizable languages are closed under union and intersection.

Q.no 39. Which of the following statement is not CORRECT?

A : For non deterministic PDA, equivalence is undecidable

B : For deterministic PDA, equivalence is decidable

C : For deterministic PDA, equivalence is undecidable.

D : For non deterministic PDA, equivalence is decidable

Q.no 40. Consider the CFG given in following figure. Which of the production is useless

production among it.

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

Q.no 43. Given regular expression is correctly represented as __________

A:

B:

C:

D:

Q.no 44. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,

Which of the following statements is true ?


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 : L is recursive

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

Q.no 47. CFG for balanced parenthesis

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

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

Q.no 50. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

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:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1

Q.no 55. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular

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

III. Whether two push-down automata accept the same language


IV. Whether a given grammar is context-free

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

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

Answer for Question No 1. is c

Answer for Question No 2. is b

Answer for Question No 3. is b

Answer for Question No 4. is d

Answer for Question No 5. is b

Answer for Question No 6. is d

Answer for Question No 7. is c

Answer for Question No 8. is b

Answer for Question No 9. is b

Answer for Question No 10. is b

Answer for Question No 11. is d

Answer for Question No 12. is d

Answer for Question No 13. is b

Answer for Question No 14. is d

Answer for Question No 15. is c

Answer for Question No 16. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is d

Answer for Question No 18. is b

Answer for Question No 19. is c

Answer for Question No 20. is c

Answer for Question No 21. is d

Answer for Question No 22. is a

Answer for Question No 23. is a

Answer for Question No 24. is b

Answer for Question No 25. is a

Answer for Question No 26. is d

Answer for Question No 27. is b

Answer for Question No 28. is c

Answer for Question No 29. is d

Answer for Question No 30. is a

Answer for Question No 31. is c

Answer for Question No 32. is d

Answer for Question No 33. is d


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is d

Answer for Question No 35. is a

Answer for Question No 36. is a

Answer for Question No 37. is a

Answer for Question No 38. is b

Answer for Question No 39. is c

Answer for Question No 40. is d

Answer for Question No 41. is a

Answer for Question No 42. is c

Answer for Question No 43. is c

Answer for Question No 44. is a

Answer for Question No 45. is a

Answer for Question No 46. is b

Answer for Question No 47. is a

Answer for Question No 48. is d

Answer for Question No 49. is d

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is b

Answer for Question No 52. is b

Answer for Question No 53. is a

Answer for Question No 54. is a

Answer for Question No 55. is b

Answer for Question No 56. is b

Answer for Question No 57. is a

Answer for Question No 58. is a

Answer for Question No 59. is c

Answer for Question No 60. is b

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

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

A : Subset Construction method

B : Warshalls Algorithm

C : Ardens theorem

D : Prims Algorithm

Q.no 3. 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.

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

Q.no 4. Those problems that are solvable in polynomial time__

A : NP

B:P

C : Hard

D : Complete

Q.no 5. Which of the following is not a regular expression?

A:

B:

C:

D:

Q.no 6. Moore machine is an application of

A : Finite Automata without output

B : Finite Automata with output

C:

D:

Q.no 7. CFG is not closed under

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

Q.no 8. Finite-state acceptors for the nested words can be:

A : nested word automata

B : push down automata

C : ndfa

D : ndpda

Q.no 9. Transition function of non deterministic finite automata is

A:

B:

C:

D:

Q.no 10. A deterministic turing machine is:

A : Ambiguous Turing Machine

B : Unambiguous Turing Machine

C : Non-Deterministic

D : Deterministic Finite Automata

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

Q.no 12. State whether following statement is true or false

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

C : only two paths

D : zero path

Q.no 14. Which among the following is incorrect with reference to a derivation tree?

A : Every vertex has a label which is a terminal or a variable.

B : The root has a label which can be a terminal.

C : The label of the internal vertex is a variable.

D : Terminal node has a lable which can be a terminal

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 16. A turing machine with several tapes in known as:

A : Multi-tape turing machine

B : Poly tape turing maching

C : Universal turing machine

D : Complete turing machine

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

described in following figure.

A : i is greater than 0

B : i is less than 0

C : i is less than or equal to 0

D : i is greater than or equal to 0

Q.no 19. Decidable can be taken as a synonym to:

A : Recursive

B : Non Recursive

C : Recognizable

D : Non Recognizable

Q.no 20. Regular Grammar is a _______________

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

Q.no 22. Which term belong in intersection of the diagram

A : NP

B:P

C : NP Hard

D : NP Complete

Q.no 23. What is the result of following union operation.

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

Q.no 25. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

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.

A : Statement 1 is true and Statement 2 is true

B : Statement 1 is true and Statement 2 is false

C : Statement 1 can be true and Statement 2 is true

D : Statement 1 is false and Statement 2 is also false

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?

A : Push Down Automata

B : Non deterministic Finite Automata

C : Turing machines

D : Deterministic Finite Automata

Q.no 28. Which of the following is a P-complete type of problem?

A : Circuit Value problem

B : Linear programming

C : Context free grammar membership

D : All of the mentioned

Q.no 29. Which of the following is not an application of Pumping Lemma?

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?

A : Writes the symbol

B : Moves the tape one cell left/right

C : Proceeds with next instruction or halts

D : Push the input in stack

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

A : Pumping lemma of regular language

B : Pigeon Hole principle

C : Count principle

D : Pumping lemma of context free language

Q.no 33. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

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

Q.no 35. Two finite states are equivalent if

A : Both are final states

B : Both are non final states

C : one is final state and one is non final state

D : either both are final states or both are non final states

Q.no 36. Languge described in following figure is _______________

A : Regular language

B : Non Regular language

C : Both regular and non regular

D : neighter a regular nor a nonregular 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

Q.no 38. Consider a CFG given below.Corrsponding CFL is consists of ____________.

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

A : All length Palindromes

B : Odd length Palindromes

C : Even length Palindromes

D : prime number length palindromes

Q.no 39. Consider the CFG given in following figure. Which of the production is useless

production among it.

A:

B:

C:

D:

Q.no 40. In context to the process of removing useless symbols, which of the following is correct?

A : We remove the Nullable variables

B : We eliminate the unit productions

C : We eliminate products which yield no terminals

D : We eliminate the both unit productions and Nullable variables

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

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

Q.no 42. Which of the following is/are Undecidable?

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

C : Context free but not regular

D : Recursively enumerable but not context free

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

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

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:

Q.no 48. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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.

Which of the following statements is true about M ?

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 : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 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:

Q.no 52. What is the output of below given regular expression?

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:

Q.no 54. Which of the following problems are decidable?

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

used to represent it?

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

________.

A : Decidable and Recursively Enumerable

B : Undecidable but Recursively Enumerable

C : Undecidable and Not Recursively Enumerable

D : Decidable but not Recursively Enumerable

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

Answer for Question No 1. is c

Answer for Question No 2. is a

Answer for Question No 3. is b

Answer for Question No 4. is b

Answer for Question No 5. is b

Answer for Question No 6. is b

Answer for Question No 7. is c

Answer for Question No 8. is a

Answer for Question No 9. is d

Answer for Question No 10. is b

Answer for Question No 11. is b

Answer for Question No 12. is a

Answer for Question No 13. is b

Answer for Question No 14. is b

Answer for Question No 15. is d

Answer for Question No 16. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is d

Answer for Question No 18. is d

Answer for Question No 19. is a

Answer for Question No 20. is a

Answer for Question No 21. is b

Answer for Question No 22. is d

Answer for Question No 23. is a

Answer for Question No 24. is b

Answer for Question No 25. is a

Answer for Question No 26. is a

Answer for Question No 27. is c

Answer for Question No 28. is d

Answer for Question No 29. is d

Answer for Question No 30. is b

Answer for Question No 31. is d

Answer for Question No 32. is b

Answer for Question No 33. is d


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is c

Answer for Question No 35. is d

Answer for Question No 36. is b

Answer for Question No 37. is d

Answer for Question No 38. is d

Answer for Question No 39. is d

Answer for Question No 40. is c

Answer for Question No 41. is a

Answer for Question No 42. is d

Answer for Question No 43. is c

Answer for Question No 44. is b

Answer for Question No 45. is d

Answer for Question No 46. is c

Answer for Question No 47. is b

Answer for Question No 48. is b

Answer for Question No 49. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is a

Answer for Question No 52. is b

Answer for Question No 53. is b

Answer for Question No 54. is d

Answer for Question No 55. is a

Answer for Question No 56. is c

Answer for Question No 57. is b

Answer for Question No 58. is b

Answer for Question No 59. is d

Answer for Question No 60. is a

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. 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

Q.no 2. The set generated by below given regular expression is ______________________.

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:

Q.no 3. State whether following statement is true or false

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

Q.no 5. A CFG consist of ____tuples

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 _____________

A : Context Free Language

B : Turing Acceptable Language

C : Recursively Enumerable Language

D : Turing Decidable Language

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

described in following figure.

A : i is greater than 0

B : i is less than 0

C : i is less than or equal to 0

D : i is greater than or equal to 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:

Q.no 9. Which type of grammar is given in following figure?

A : Left Linear Grammar

B : Right Linear Grammar

C : Both right linear as well as left linear

D : Non Linear Grammar

Q.no 10. A deterministic turing machine is:

A : Ambiguous Turing Machine

B : Unambiguous Turing Machine

C : Non-Deterministic

D : Deterministic Finite Automata

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

Q.no 13. Which of the following are not in NP?

A : All problems in P

B : Boolean Satisfiability problems

C : Integer factorization problem

D : None of the mentioned

Q.no 14. The output alphabet can be represented as

A:

B:

C:

D:

Q.no 15. Which of the following statement is correct

A : Moore machine and Mealy machine both has five 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

D : Moore machine and Mealy machine both has six 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

Q.no 17. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input

Q.no 18. Mealy and Moore machines are also called

A : Turing machines

B : Transducer

C : Linear bounded automata

D : both turing machine and linear bounded automata

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?

A : Finite State Automaton

B : Universal Turing Machine

C : Counter machines

D : Deterministic Finite Automata

Q.no 21. Which among the following is not true for 2-way infinte TM?

A : Tape in both directions

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 : Leftmost square not distinguished

C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.

D : Tape is only in one directions

Q.no 22. Describe the language generated by finite state machine given below.

A : Any string of odd number of a's

B : Any string of odd number of b’s

C : Any string of even number of a’s and odd number of b’s

D : Any string of odd number of a’s and odd number of b’s

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

A : Elimination of null production

B : Elimination of unit production

C : Elimination of Left recursion

D : converting a given grammar to chomsky normal form


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 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

Q.no 26. Which of the following is a P-complete type of problem?

A : Circuit Value problem

B : Linear programming

C : Context free grammar membership

D : All of the mentioned

Q.no 27. What is the transition function of below mentioned machine

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.

A : Statement 1 is true and Statement 2 is true

B : Statement 1 is true and Statement 2 is false

C : Statement 1 can be true and Statement 2 is true

D : Statement 1 is false and Statement 2 is also false

Q.no 29. Which of the following is not a Non deterministic turing machine?

A : Alternating 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

B : Probabalistic Turing Machine

C : Read-only turing Machine

D : Unsolvable

Q.no 30. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?

A : Every CFG for L is ambiguous

B : Every CFG for L is unambiguous

C : Every CFG is also regular

D : Every CFG for L is non regular

Q.no 31. Which term belong in intersection of the diagram

A : NP

B:P

C : NP Hard

D : NP Complete

Q.no 32. Which of the given problems are NP-complete?

A : Node cover problems

B : Directed Hamilton Circuit Problem

C : Both (a) and (b)

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?

A : Push Down Automata

B : Non deterministic Finite Automata

C : Turing machines

D : Deterministic Finite Automata

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:

Q.no 36. Languge described in following figure is _______________

A : Regular language

B : Non Regular language

C : Both regular and non regular

D : neighter a regular nor a nonregular 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:

D : None of the mentioned

Q.no 38. Hamilton Circuit problem is a special case of ____________

A : Travelling Salesman Problem

B : Halting Problem

C : Hitting Set

D : Prims Algorithm

Q.no 39. PDA is more powerful than ____ but less powerful than ________.

A : DFA and NFA

B : Turing machine and DFA

C : DFA and turing machine

D : Mealy machine and DFA

Q.no 40. Which of the following pairs have different expressive power?

A : DFA AND NDFA

B : DPDA AND NPDA

C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine

D : single tape turing machine and multiple 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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

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

states for the given input string is ____________.

A:

B:

C:

D:

Q.no 46. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

Q.no 47. A PDA machine configuration (p, w, y) can be correctly represented as:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input


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. Given regular expression is correctly represented as __________

A:

B:

C:

D:

Q.no 49. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

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

C : Context free but not regular

D : Recursively enumerable but not context free


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 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,

Which of the following statements is true ?

A : L is recursive

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

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

Q.no 56. CFG for balanced parenthesis

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

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

Answer for Question No 1. is b

Answer for Question No 2. is b

Answer for Question No 3. is a

Answer for Question No 4. is b

Answer for Question No 5. is b

Answer for Question No 6. is d

Answer for Question No 7. is d

Answer for Question No 8. is a

Answer for Question No 9. is b

Answer for Question No 10. is b

Answer for Question No 11. is a

Answer for Question No 12. is a

Answer for Question No 13. is d

Answer for Question No 14. is d

Answer for Question No 15. is d

Answer for Question No 16. is c

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is b

Answer for Question No 18. is b

Answer for Question No 19. is b

Answer for Question No 20. is b

Answer for Question No 21. is d

Answer for Question No 22. is d

Answer for Question No 23. is d

Answer for Question No 24. is c

Answer for Question No 25. is a

Answer for Question No 26. is d

Answer for Question No 27. is c

Answer for Question No 28. is a

Answer for Question No 29. is c

Answer for Question No 30. is a

Answer for Question No 31. is d

Answer for Question No 32. is c

Answer for Question No 33. is c


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is b

Answer for Question No 35. is a

Answer for Question No 36. is b

Answer for Question No 37. is d

Answer for Question No 38. is a

Answer for Question No 39. is c

Answer for Question No 40. is b

Answer for Question No 41. is a

Answer for Question No 42. is c

Answer for Question No 43. is b

Answer for Question No 44. is b

Answer for Question No 45. is a

Answer for Question No 46. is b

Answer for Question No 47. is a

Answer for Question No 48. is c

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is a

Answer for Question No 51. is c

Answer for Question No 52. is d

Answer for Question No 53. is d

Answer for Question No 54. is a

Answer for Question No 55. is b

Answer for Question No 56. is a

Answer for Question No 57. is a

Answer for Question No 58. is c

Answer for Question No 59. is b

Answer for Question No 60. is b

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. A deterministic turing machine is:

A : Ambiguous Turing Machine

B : Unambiguous Turing Machine

C : Non-Deterministic

D : Deterministic Finite Automata

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

Q.no 3. __________ is the graphical representation of a grammar.

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

B : Red black tree

C : Parse tree

D : Binary search tree

Q.no 4. 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

Q.no 5. A PDA chooses the next move based on

A : Current state

B : Next input symbol

C : on stack contents

D : uses all current state ,next input symbol and top of the stack

Q.no 6. Regular Grammar is a _______________

A : Type 3 grammar

B : Type 2 grammar

C : Type 1 grammar

D : Type 0 grammar

Q.no 7. A turing machine with several tapes in known as:

A : Multi-tape turing machine

B : Poly tape turing maching

C : Universal turing machine

D : Complete turing machine

Q.no 8. Pushdown automata consists of _____

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

Q.no 9. Transition function of Turing Machine is

A:

B:

C:

D:

Q.no 10. Which of the following statement is not true?

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

C : In derivation of string any nonterminal is selected to obtain next step of derivation

D : In derivation tree root node is always labelled by starting symbol

Q.no 11. Which of the following statement is correct

A : Moore machine and Mealy machine both has five 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

D : Moore machine and Mealy machine both has six 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

Q.no 13. The value of n if turing machine is defined using n-tuples:

A:6

B:7

C:8

D:5

Q.no 14. State whether following statement is true or false

A : TRUE

B : FALSE

C:

D:

Q.no 15. Moore machine is an application of

A : Finite Automata without output

B : Finite Automata with output

C:

D:

Q.no 16. Which of the following statement is not true

A : Type 0 grammar is called unrestricted grammar

B : Type 3 grammar is recognized by FA

C : Chomsky hierarchy define only one grammar

D : Type 3 grammar is called as regular grammar

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

described in following figure.

A : i is greater than 0

B : i is less than 0

C : i is less than or equal to 0

D : i is greater than or equal to 0

Q.no 19. Which of the following are the actions that operates on stack top?

A : Pushing

B : Popping

C : Replacing

D : All three actions are possible

Q.no 20. Which of the following are not in NP?

A : All problems in P

B : Boolean Satisfiability problems

C : Integer factorization problem

D : None of the mentioned

Q.no 21. Which among the following cannot be accepted by a regular grammar?

A : L is a set of numbers divisible by 2

B : L is a set of binary complement

C : L is a set of string with odd number of 0

D : L is a set of 0n1n

Q.no 22. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine


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

D : Determining of a universal turing machine and some input will halt

Q.no 23. Hamilton Circuit problem is a special case of ____________

A : Travelling Salesman Problem

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.

A : Push Down automata

B : DFA

C : NDFA

D : Deterministic Turing machine

Q.no 25. Consider a CFG given below.Corrsponding CFL is consists of ____________.

A : All length Palindromes

B : Odd length Palindromes

C : Even length Palindromes

D : prime number length palindromes

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

Q.no 27. What is the result of following union operation.

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?

A : Statement 1 is true but statement 2 is false

B : Statement 1 is false but statement 2 is true

C : Both the statements are true

D : Both the statements are false

Q.no 29. Two finite states are equivalent if

A : Both are final states

B : Both are non final states

C : one is final state and one is non final state

D : either both are final states or both are non final states

Q.no 30. CFG for following 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 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. Simplify the following identity?

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

Q.no 36. Which term belong in intersection of the diagram

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?

A : Tape in both directions

B : Leftmost square not distinguished


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

C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.

D : Tape is only in one directions

Q.no 38. In Moore machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

Q.no 39. What is the transition function of below mentioned machine

A:

B:

C:

D:

Q.no 40. Which of the following is not a Non deterministic turing machine?

A : Alternating Turing Machine

B : Probabalistic Turing Machine

C : Read-only 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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

Q.no 43. Consider the following three regular expressions and two statements shown in below

figure. Choose its correct answer from given options.

A:

B:

C:

D:

Q.no 44. Consider a regular 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 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:

Q.no 46. CFG for balanced parenthesis

A:

B:

C:

D:

Q.no 47. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,

Which of the following statements is true ?

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

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

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

D : P3 is decidable if P3 is reducible to P2’s complement

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

Q.no 51. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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

C : Context free but not regular

D : Recursively enumerable but not context free

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. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

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

D : is not a deterministic CFL but a CFL

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

Q.no 56. Given regular expression is correctly represented as __________

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1

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

Answer for Question No 1. is b

Answer for Question No 2. is d

Answer for Question No 3. is c

Answer for Question No 4. is b

Answer for Question No 5. is d

Answer for Question No 6. is a

Answer for Question No 7. is a

Answer for Question No 8. is d

Answer for Question No 9. is a

Answer for Question No 10. is c

Answer for Question No 11. is d

Answer for Question No 12. is c

Answer for Question No 13. is b

Answer for Question No 14. is a

Answer for Question No 15. is b

Answer for Question No 16. is c

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is a

Answer for Question No 18. is d

Answer for Question No 19. is d

Answer for Question No 20. is d

Answer for Question No 21. is d

Answer for Question No 22. is a

Answer for Question No 23. is a

Answer for Question No 24. is d

Answer for Question No 25. is d

Answer for Question No 26. is d

Answer for Question No 27. is a

Answer for Question No 28. is c

Answer for Question No 29. is d

Answer for Question No 30. is c

Answer for Question No 31. is a

Answer for Question No 32. is c

Answer for Question No 33. is a


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is a

Answer for Question No 35. is b

Answer for Question No 36. is d

Answer for Question No 37. is d

Answer for Question No 38. is a

Answer for Question No 39. is c

Answer for Question No 40. is c

Answer for Question No 41. is b

Answer for Question No 42. is b

Answer for Question No 43. is a

Answer for Question No 44. is a

Answer for Question No 45. is c

Answer for Question No 46. is a

Answer for Question No 47. is a

Answer for Question No 48. is c

Answer for Question No 49. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is b

Answer for Question No 52. is c

Answer for Question No 53. is b

Answer for Question No 54. is b

Answer for Question No 55. is c

Answer for Question No 56. is c

Answer for Question No 57. is b

Answer for Question No 58. is a

Answer for Question No 59. is b

Answer for Question No 60. is a

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. Moore machine is an application of

A : Finite Automata without output

B : Finite Automata with output

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

Q.no 5. Linear Bounded Automaton is a:

A : Finite Automaton

B : Turing Machine

C : Push down Automaton

D : Deterministic Finite Automata

Q.no 6. 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 7. Which of the following are not in NP?

A : All problems in P

B : Boolean Satisfiability problems

C : Integer factorization problem

D : None of the mentioned

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

Q.no 10. The value of n if turing machine is defined using n-tuples:

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
_______

A : Multi-tape turing machine

B : Poly tape turing maching

C : Universal turing machine

D : Deterministic Finite Automata

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

B : For every DFA there is a regular expression denoting its language

C : For a regular expression r, there does not exist NFA with L (r )

D : For every regular expression there exist a DFA accepting its language

Q.no 13. The statement A TM can not solve halting problem is

A : TRUE

B : FALSE

C:

D:

Q.no 14. Which among the following is incorrect with reference to a derivation tree?

A : Every vertex has a label which is a terminal or a variable.

B : The root has a label which can be a terminal.

C : The label of the internal vertex is a variable.

D : Terminal node has a lable which can be a terminal

Q.no 15. Turing machine can be represented using the following tools:

A : Transition graph

B : Transition table

C : Queue and Input tape

D : All of the mentioned

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:

Q.no 19. Which of the following statement is not true?

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

C : In derivation of string any nonterminal is selected to obtain next step of derivation

D : In derivation tree root node is always labelled by starting symbol

Q.no 20. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input

Q.no 21. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.

A : Push Down automata

B : DFA

C : NDFA

D : Deterministic Turing machine

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

A : Left Recursive Grammar

B : Non Recursive Grammar

C : Right Recursive Grammar

D : Right Linear Grammar

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?

A : Tape in both directions

B : Leftmost square not distinguished

C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.

D : Tape is only in one directions

Q.no 25. If the PDA does not stop on an accepting state and the stack is not empty, the string is:

A : rejected

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

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

A : We remove the Nullable variables

B : We eliminate the unit productions

C : We eliminate products which yield no terminals

D : We eliminate the both unit productions and Nullable variables

Q.no 27. Consider the given figure .what will be the next ID?

A:

B:

C:

D : None of the mentioned

Q.no 28. Which among the following cannot be accepted by a regular grammar?

A : L is a set of numbers divisible by 2

B : L is a set of binary complement

C : L is a set of string with odd number of 0

D : L is a set of 0n1n

Q.no 29. Hamilton Circuit problem is a special case of ____________

A : Travelling Salesman Problem

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?

A : Push Down Automata

B : Non deterministic Finite Automata

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

D : Deterministic Finite Automata

Q.no 31. What is the transition function of below mentioned machine

A:

B:

C:

D:

Q.no 32. Describe the language generated by finite state machine given below.

A : Any string of odd number of a's

B : Any string of odd number of b’s

C : Any string of even number of a’s and odd number of b’s

D : Any string of odd number of a’s and odd number of b’s

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?

A : Writes the symbol


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 : Moves the tape one cell left/right

C : Proceeds with next instruction or halts

D : Push the input in stack

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

Q.no 37. CFG for following regular expression is ____.

A:

B:

C:

D:

Q.no 38. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?

A : Every CFG for L is ambiguous

B : Every CFG for L is unambiguous

C : Every CFG is also regular

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 : Every CFG for L is non regular

Q.no 39. Consider the language given in following figure, what type of language it is?

A : Context free language

B : Regular language

C : Both CFL and RL

D : non context free 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:

Q.no 42. Given regular expression is correctly represented as __________

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,

Which of the following statements is true ?

A : L is recursive

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

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:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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:

Q.no 47. Which of the following is/are Undecidable?

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:

Q.no 51. Which of the following problems are decidable?

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

states for the given input string is ____________.

A:

B:

C:

D:

Q.no 54. Consider a regular language described in following figure. Which regular expression is

used to represent it?

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

C : Context free but not regular

D : Recursively enumerable but not context free

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1

Q.no 59. Consider the following three regular expressions and two statements shown in below

figure. Choose its correct answer from given options.

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

Answer for Question No 1. is b

Answer for Question No 2. is c

Answer for Question No 3. is a

Answer for Question No 4. is a

Answer for Question No 5. is b

Answer for Question No 6. is b

Answer for Question No 7. is d

Answer for Question No 8. is b

Answer for Question No 9. is c

Answer for Question No 10. is b

Answer for Question No 11. is c

Answer for Question No 12. is c

Answer for Question No 13. is a

Answer for Question No 14. is b

Answer for Question No 15. is d

Answer for Question No 16. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is a

Answer for Question No 18. is a

Answer for Question No 19. is c

Answer for Question No 20. is b

Answer for Question No 21. is d

Answer for Question No 22. is a

Answer for Question No 23. is c

Answer for Question No 24. is d

Answer for Question No 25. is a

Answer for Question No 26. is c

Answer for Question No 27. is d

Answer for Question No 28. is d

Answer for Question No 29. is a

Answer for Question No 30. is c

Answer for Question No 31. is c

Answer for Question No 32. is d

Answer for Question No 33. is b


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is d

Answer for Question No 35. is b

Answer for Question No 36. is a

Answer for Question No 37. is c

Answer for Question No 38. is a

Answer for Question No 39. is d

Answer for Question No 40. is c

Answer for Question No 41. is d

Answer for Question No 42. is c

Answer for Question No 43. is a

Answer for Question No 44. is c

Answer for Question No 45. is a

Answer for Question No 46. is b

Answer for Question No 47. is d

Answer for Question No 48. is b

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is a

Answer for Question No 51. is d

Answer for Question No 52. is a

Answer for Question No 53. is a

Answer for Question No 54. is a

Answer for Question No 55. is b

Answer for Question No 56. is c

Answer for Question No 57. is b

Answer for Question No 58. is a

Answer for Question No 59. is a

Answer for Question No 60. is b

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. A PDA chooses the next move based on

A : Current state

B : Next input symbol

C : on stack contents

D : uses all current state ,next input symbol and top of the stack

Q.no 2. A CFG consist of ____tuples

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

D : All three actions are possible

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

Q.no 6. Is Turing machine is more powerful than Deterministic Finite Automata?

A : TRUE

B : FALSE

C:

D:

Q.no 7. Which of the following statement is correct

A : Moore machine and Mealy machine both has five 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

D : Moore machine and Mealy machine both has six tuples

Q.no 8. Which of the functions can a turing machine not perform?

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

Q.no 11. Which of the following are not in NP?

A : All problems in P

B : Boolean Satisfiability problems

C : Integer factorization problem

D : None of the mentioned

Q.no 12. The language accepted by Push down Automaton:

A : Recursive Language

B : Context free language

C : Linearly Bounded language

D : Non context free 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

Q.no 15. Which of the following statement is CORRECT?

A : A moore machine has no accepting states

B : A moore machine has accepting states

C : A Mealy machine has accepting states

D : Both machine has accepting states

Q.no 16. Which of the following is correct for Chomsky hierarchy?

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

Q.no 19. A context free grammar is a ___________

A : English Grammar

B : Regular Grammar

C : Context Sensitive Grammar

D : Left Linear Grammar

Q.no 20. The value of n if turing machine is defined using n-tuples:

A:6

B:7

C:8

D:5

Q.no 21. Which of the following is not an application of Pumping Lemma?

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 : Writes the symbol

B : Moves the tape one cell left/right

C : Proceeds with next instruction or halts

D : Push the input in stack

Q.no 23. Which of the following is true for the language?

A : It is not accepted by a Turing Machine

B : It is regular but not context-free

C : It is context-free but not regular

D : It is neither regular nor context-free, but accepted by a Turing machine

Q.no 24. Languge described in following figure is _______________

A : Regular language

B : Non Regular language

C : Both regular and non regular

D : neighter a regular nor a nonregular language

Q.no 25. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

Q.no 26. Which of the following pairs have different expressive power?

A : DFA AND NDFA

B : DPDA AND NPDA

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

D : single tape turing machine and multiple tape turing machine

Q.no 27. If the PDA does not stop on an accepting state and the stack is not empty, the string is:

A : rejected

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

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?

A : X will always be a better choice for small inputs

B : X will always be a better choice for large inputs

C : Y will always be a better choice for small inputs

D : X will always be a better choice for all inputs

Q.no 32. While converting the context free grammar into Greibach normal form, which of the
following is necessary

A : Elimination of null production

B : Elimination of unit production

C : Elimination of Left recursion

D : converting a given grammar to chomsky normal form

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 37. Which of the following statements are correct

A : Statement 1 and 2 both are correct

B : Statement 1 is false but 2 is correct

C : Statement 1 and 2 both are false

D : Statement 1 is correct but 2 is false

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

Q.no 40. What is the result of following union operation.

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

D : P3 is decidable if P3 is reducible to P2’s complement

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

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

states for the given input string is ____________.

A:

B:

C:

D:

Q.no 47. Which of the following pair of regular expressions is not equivalent ?

A:

B:

C:

D:

Q.no 48. CFG for balanced parenthesis

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 : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

Q.no 50. Which of the following problems are decidable?

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1

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,

Which of the following statements is true ?

A : L is recursive

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

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

C : Context free but not regular

D : Recursively enumerable but not context free

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

Answer for Question No 1. is d

Answer for Question No 2. is b

Answer for Question No 3. is d

Answer for Question No 4. is d

Answer for Question No 5. is c

Answer for Question No 6. is a

Answer for Question No 7. is d

Answer for Question No 8. is d

Answer for Question No 9. is b

Answer for Question No 10. is b

Answer for Question No 11. is d

Answer for Question No 12. is b

Answer for Question No 13. is b

Answer for Question No 14. is d

Answer for Question No 15. is a

Answer for Question No 16. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is c

Answer for Question No 18. is a

Answer for Question No 19. is c

Answer for Question No 20. is b

Answer for Question No 21. is d

Answer for Question No 22. is d

Answer for Question No 23. is d

Answer for Question No 24. is b

Answer for Question No 25. is b

Answer for Question No 26. is b

Answer for Question No 27. is a

Answer for Question No 28. is d

Answer for Question No 29. is a

Answer for Question No 30. is c

Answer for Question No 31. is b

Answer for Question No 32. is c

Answer for Question No 33. is b


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is c

Answer for Question No 35. is a

Answer for Question No 36. is a

Answer for Question No 37. is a

Answer for Question No 38. is c

Answer for Question No 39. is d

Answer for Question No 40. is a

Answer for Question No 41. is c

Answer for Question No 42. is c

Answer for Question No 43. is b

Answer for Question No 44. is a

Answer for Question No 45. is c

Answer for Question No 46. is a

Answer for Question No 47. is d

Answer for Question No 48. is a

Answer for Question No 49. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is d

Answer for Question No 51. is a

Answer for Question No 52. is a

Answer for Question No 53. is d

Answer for Question No 54. is b

Answer for Question No 55. is c

Answer for Question No 56. is a

Answer for Question No 57. is c

Answer for Question No 58. is b

Answer for Question No 59. is b

Answer for Question No 60. is a

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

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

Q.no 2. NFA in its name has non-deterministic because of _____________________

A : The result is undetermined

B : The choice of path is non-deterministic

C : The state to be transited next is non-deterministic

D : The choice of path is deterministic

Q.no 3. A formal language is recursive if :

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 : A total turing machine exists

B : A turing machine that halts for every input

C : Turing machine rejects if the input does not belong to the language

D : All of the mentioned

Q.no 4. Decidable can be taken as a synonym to:

A : Recursive

B : Non Recursive

C : Recognizable

D : Non Recognizable

Q.no 5. The generators of languages are

A : Regular expressions

B : Finite State Machine

C : Grammars

D : Finite Automata

Q.no 6. Which of the functions can a turing machine not perform?

A : Copying a string

B : Deleting a symbol

C : Accepting a pal

D : Inserting a symbol

Q.no 7. __________ is the graphical representation of a grammar.

A : Binary tree

B : Red black tree

C : Parse tree

D : Binary search 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

Q.no 9. A deterministic turing machine is:

A : Ambiguous Turing Machine

B : Unambiguous Turing Machine

C : Non-Deterministic

D : Deterministic Finite Automata

Q.no 10. Regular expression x or y denotes the set

A : x,y

B:x

C:y

D : xy

Q.no 11. The language accepted by a turing machine is called ____________

A : Recursive Ennumerable

B : Recursive

C : Both (a) and (b)

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

A : Elimination of null production

B : Elimination of unit production

C : converting a given grammar to chomsky normal form

D : converting a given grammar to greibach normal form

Q.no 14. Which of the following conversion is not feasible?

A : Regular expression to automaton conversion

B : Automaton to Regular Expression Conversion

C : NFA to DFA

D : Regular expression to FA with output conversion

Q.no 15. Which of the following is not a regular expression?

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:

Q.no 18. Which of the following statement is not true

A : Type 0 grammar is called unrestricted grammar

B : Type 3 grammar is recognized by FA

C : Chomsky hierarchy define only one grammar

D : Type 3 grammar is called as regular grammar

Q.no 19. Regular expressions are closed under___________

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?

A : Writes the symbol

B : Moves the tape one cell left/right

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 : Proceeds with next instruction or halts

D : Push the input in stack

Q.no 22. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

Q.no 23. Turing machine is more powerful than Finite State Machine because

A : Tape movement is confined to one direction

B : It has no finite state

C : It has the capability to remember arbitrarily long sequences of input symbols

D : It has tape symbols

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 25. Which of the following is true for the language?

A : It is not accepted by a Turing Machine

B : It is regular but not context-free

C : It is context-free but not regular

D : It is neither regular nor context-free, but accepted by a Turing machine

Q.no 26. Which of the following statement is not CORRECT?

A : For non deterministic PDA, equivalence is undecidable


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

B : For deterministic PDA, equivalence is decidable

C : For deterministic PDA, equivalence is undecidable.

D : For non deterministic PDA, equivalence is decidable

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

Q.no 28. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

Q.no 29. Consider the CFG given in following figure. Which of the production is useless

production among it.

A:

B:

C:

D:

Q.no 30. Consider the language given in following figure, what type of language it is?

A : Context free language

B : Regular language

C : Both CFL and RL

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

D : non context free language

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

Q.no 32. CFG for following regular expression is ____.

A:

B:

C:

D:

Q.no 33. Simplify the following identity?

A:

B:

C:

D:

Q.no 34. Which of the following is analogous to NFA and NPDA


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 : Regular language and Context Free language

B : Regular language and Context Sensitive language

C : Context free language and Context Sensitive language

D : Non Regular language and Non Context Free language

Q.no 35. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.

A : Push Down automata

B : DFA

C : NDFA

D : Deterministic Turing machine

Q.no 36. Which of the given problems are NP-complete?

A : Node cover problems

B : Directed Hamilton Circuit Problem

C : Both (a) and (b)

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

Q.no 38. Hamilton Circuit problem is a special case of ____________

A : Travelling Salesman Problem

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

A : Elimination of null production

B : Elimination of unit production

C : Elimination of Left recursion

D : converting a given grammar to chomsky normal form

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

D : Only a is true

Q.no 44. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

Q.no 47. Consider the finite automata and string given in following figure.The set of reachable

states for the given input string is ____________.


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

A:

B:

C:

D:

Q.no 48. Which of the following is/are Undecidable?

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

Q.no 50. What is the output of below given regular expression?

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:

Q.no 54. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

Q.no 55. Two languages L1 and L2 are given in following figure. Which statement is FALSE

about it?

A : L2 is context free

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

Q.no 56. Consider the statement given in following figure and describe the language L. L is

________.

A : Decidable and Recursively Enumerable

B : Undecidable but Recursively Enumerable

C : Undecidable and Not Recursively Enumerable

D : Decidable but not Recursively Enumerable

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

figure. Choose its correct answer from given options.

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

Answer for Question No 1. is c

Answer for Question No 2. is b

Answer for Question No 3. is d

Answer for Question No 4. is a

Answer for Question No 5. is c

Answer for Question No 6. is d

Answer for Question No 7. is c

Answer for Question No 8. is b

Answer for Question No 9. is b

Answer for Question No 10. is a

Answer for Question No 11. is c

Answer for Question No 12. is b

Answer for Question No 13. is d

Answer for Question No 14. is d

Answer for Question No 15. is b

Answer for Question No 16. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is b

Answer for Question No 18. is c

Answer for Question No 19. is d

Answer for Question No 20. is a

Answer for Question No 21. is d

Answer for Question No 22. is d

Answer for Question No 23. is c

Answer for Question No 24. is b

Answer for Question No 25. is d

Answer for Question No 26. is c

Answer for Question No 27. is c

Answer for Question No 28. is a

Answer for Question No 29. is d

Answer for Question No 30. is d

Answer for Question No 31. is b

Answer for Question No 32. is c

Answer for Question No 33. is a


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is a

Answer for Question No 35. is d

Answer for Question No 36. is c

Answer for Question No 37. is c

Answer for Question No 38. is a

Answer for Question No 39. is b

Answer for Question No 40. is c

Answer for Question No 41. is b

Answer for Question No 42. is c

Answer for Question No 43. is a

Answer for Question No 44. is b

Answer for Question No 45. is b

Answer for Question No 46. is b

Answer for Question No 47. is a

Answer for Question No 48. is d

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is b

Answer for Question No 52. is d

Answer for Question No 53. is c

Answer for Question No 54. is b

Answer for Question No 55. is d

Answer for Question No 56. is b

Answer for Question No 57. is c

Answer for Question No 58. is a

Answer for Question No 59. is d

Answer for Question No 60. is a

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. Consider a language described in following figure. Which regular expression is used to

represent it?

A:

B:

C:

D:

Q.no 2. Which kind of proof is used to prove the regularity of a language?

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

Q.no 3. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input

Q.no 4. The language accepted by a turing machine is called ____________

A : Recursive Ennumerable

B : Recursive

C : Both (a) and (b)

D : PDA

Q.no 5. Turing machine can be represented using the following tools:

A : Transition graph

B : Transition table

C : Queue and Input tape

D : All of the mentioned

Q.no 6. A deterministic turing machine is:

A : Ambiguous Turing Machine

B : Unambiguous Turing Machine

C : Non-Deterministic

D : Deterministic Finite Automata

Q.no 7. Which among the following is incorrect with reference to a derivation tree?

A : Every vertex has a label which is a terminal or a variable.

B : The root has a label which can be a terminal.


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

C : The label of the internal vertex is a variable.

D : Terminal node has a lable which can be a terminal

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

Q.no 9. The output alphabet can be represented as

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

B : For every DFA there is a regular expression denoting its language

C : For a regular expression r, there does not exist NFA with L (r )

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:

Q.no 12. __________ is the graphical representation of a grammar.

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

B : Red black tree

C : Parse tree

D : Binary search tree

Q.no 13. Finite-state acceptors for the nested words can be:

A : nested word automata

B : push down automata

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?

A : Finite State Automaton

B : Universal Turing Machine

C : Counter machines

D : Deterministic Finite Automata

Q.no 16. Transition function of Turing Machine is

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:

Q.no 17. A formal language is recursive if :

A : A total turing machine exists

B : A turing machine that halts for every input

C : Turing machine rejects if the input does not belong to the language

D : All of the mentioned

Q.no 18. A context free grammar is a ___________

A : English Grammar

B : Regular Grammar

C : Context Sensitive Grammar

D : Left Linear 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

Q.no 20. State whether following statement is true or false

A : TRUE

B : FALSE

C:

D:

Q.no 21. In Moore machine the output is depends on

A : Only on current state


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

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

Q.no 22. Consider the given alphabet and regular expression R. What type of language it

represents?

A:

B:

C:

D:

Q.no 23. CFG for following regular expression is ____.

A:

B:

C:

D:

Q.no 24. Which of the following is analogous to NFA and NPDA

A : Regular language and Context Free language

B : Regular language and Context Sensitive language

C : Context free language and Context Sensitive language

D : Non Regular language and Non Context Free language

Q.no 25. Two finite states are equivalent if

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 : Both are final states

B : Both are non final states

C : one is final state and one is non final state

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.

A : Left Recursive Grammar

B : Non Recursive Grammar

C : Right Recursive Grammar

D : Right Linear Grammar

Q.no 28. Turing machine is more powerful than Finite State Machine because

A : Tape movement is confined to one direction

B : It has no finite state

C : It has the capability to remember arbitrarily long sequences of input symbols

D : It has tape symbols

Q.no 29. Simplify the following identity?

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

D : All of the mentioned

Q.no 32. Which of the following is a P-complete type of problem?

A : Circuit Value problem

B : Linear programming

C : Context free grammar membership

D : All of the mentioned

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

B : A minimum spanning tree

C : Bellman Ford algorithm

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

Q.no 36. What is the transition function of below mentioned machine

A:

B:

C:

D:

Q.no 37. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?

A : X will always be a better choice for small inputs

B : X will always be a better choice for large inputs

C : Y will always be a better choice for small inputs


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

D : X will always be a better choice for all inputs

Q.no 38. If the PDA does not stop on an accepting state and the stack is not empty, the string is:

A : rejected

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

Q.no 39. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

Q.no 40. Which of the functions are not performed by the turing machine after reading a
symbol?

A : Writes the symbol

B : Moves the tape one cell left/right

C : Proceeds with next instruction or halts

D : Push the input in stack

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

figure. Choose its correct answer from given options.

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

C : Context free but not regular

D : Recursively enumerable but not context free

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

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

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:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1

Q.no 49. Which of the following is/are Undecidable?

A : 3 only

B : 3 and 4 only

C : 1, 2 and 3 only

D : 2 and 3 only

Q.no 50. CFG for balanced parenthesis

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

states for the given input string is ____________.

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

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

D : P3 is decidable if P3 is reducible to P2’s complement

Q.no 58. Consider a regular language described in following figure. Which regular expression is

used to represent it?

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

Q.no 60. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

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

Answer for Question No 1. is b

Answer for Question No 2. is a

Answer for Question No 3. is b

Answer for Question No 4. is c

Answer for Question No 5. is d

Answer for Question No 6. is b

Answer for Question No 7. is b

Answer for Question No 8. is b

Answer for Question No 9. is d

Answer for Question No 10. is c

Answer for Question No 11. is a

Answer for Question No 12. is c

Answer for Question No 13. is a

Answer for Question No 14. is c

Answer for Question No 15. is b

Answer for Question No 16. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is d

Answer for Question No 18. is c

Answer for Question No 19. is d

Answer for Question No 20. is a

Answer for Question No 21. is a

Answer for Question No 22. is c

Answer for Question No 23. is c

Answer for Question No 24. is a

Answer for Question No 25. is d

Answer for Question No 26. is d

Answer for Question No 27. is a

Answer for Question No 28. is c

Answer for Question No 29. is a

Answer for Question No 30. is c

Answer for Question No 31. is d

Answer for Question No 32. is d

Answer for Question No 33. is b


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is a

Answer for Question No 35. is a

Answer for Question No 36. is c

Answer for Question No 37. is b

Answer for Question No 38. is a

Answer for Question No 39. is a

Answer for Question No 40. is d

Answer for Question No 41. is b

Answer for Question No 42. is a

Answer for Question No 43. is c

Answer for Question No 44. is b

Answer for Question No 45. is d

Answer for Question No 46. is c

Answer for Question No 47. is a

Answer for Question No 48. is a

Answer for Question No 49. is d

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is a

Answer for Question No 51. is b

Answer for Question No 52. is b

Answer for Question No 53. is a

Answer for Question No 54. is b

Answer for Question No 55. is a

Answer for Question No 56. is b

Answer for Question No 57. is c

Answer for Question No 58. is a

Answer for Question No 59. is c

Answer for Question No 60. is b

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. Finite-state acceptors for the nested words can be:

A : nested word automata

B : push down automata

C : ndfa

D : ndpda

Q.no 2. A CFG consist of ____tuples

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

Q.no 4. The statement A TM can not solve halting problem is

A : TRUE

B : FALSE

C:

D:

Q.no 5. Which type of grammar is given in following figure?

A : Left Linear Grammar

B : Right Linear Grammar

C : Both right linear as well as left linear

D : Non Linear Grammar

Q.no 6. Turing machine can be represented using the following tools:

A : Transition graph

B : Transition table

C : Queue and Input tape

D : All of the mentioned

Q.no 7. The output alphabet can be represented as

A:

B:

C:

D:

Q.no 8. The language accepted by Push down Automaton:


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 : Recursive Language

B : Context free language

C : Linearly Bounded language

D : Non context free language

Q.no 9. The generators of languages are

A : Regular expressions

B : Finite State Machine

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

Q.no 11. Which Grammar can be translated to deterministic finite automata

A : Left Linear Grammar

B : Right Linear Grammar

C : Context free grammar

D : Generic grammar

Q.no 12. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input

Q.no 13. CFG is not closed under

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:

Q.no 15. State whether following statement is true or false

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

Q.no 17. Transition function of non deterministic finite automata is

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:

Q.no 18. Which of the following conversion is not feasible?

A : Regular expression to automaton conversion

B : Automaton to Regular Expression Conversion

C : NFA to DFA

D : Regular expression to FA with output conversion

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

Q.no 20. A formal language is recursive if :

A : A total turing machine exists

B : A turing machine that halts for every input

C : Turing machine rejects if the input does not belong to the language

D : All of the mentioned

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?

A : X will always be a better choice for small inputs

B : X will always be a better choice for large inputs

C : Y will always be a better choice for small inputs

D : X will always be a better choice for all inputs

Q.no 23. Consider the language given in following figure, what type of language it is?

A : Context free language

B : Regular language

C : Both CFL and RL

D : non context free 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

production among it.

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?

A : Every CFG for L is ambiguous

B : Every CFG for L is unambiguous

C : Every CFG is also regular

D : Every CFG for L is non regular

Q.no 28. Which of the following statements are correct

A : Statement 1 and 2 both are correct

B : Statement 1 is false but 2 is correct

C : Statement 1 and 2 both are false

D : Statement 1 is correct but 2 is false

Q.no 29. Which of the following pairs have different expressive power?

A : DFA AND NDFA

B : DPDA AND NPDA

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

D : single tape turing machine and multiple tape turing machine

Q.no 30. Which term belong in intersection of the diagram

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

A : Tape movement is confined to one direction

B : It has no finite state

C : It has the capability to remember arbitrarily long sequences of input symbols

D : It has tape symbols

Q.no 33. Languge described in following figure is _______________

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

B : Non Regular language

C : Both regular and non regular

D : neighter a regular nor a nonregular language

Q.no 34. Consider a CFG given below.Corrsponding CFL is consists of ____________.

A : All length Palindromes

B : Odd length Palindromes

C : Even length Palindromes

D : prime number length palindromes

Q.no 35. Which of the following statements is False?

A : For every non-deterministic Turing machine, there exists an equivalent deterministic Turing
machine.

B : Turing recognizable languages are closed under union and complementation.

C : Turing decidable languages are closed under intersection


and complementation.

D : Turing recognizable languages are closed under union and intersection.

Q.no 36. What is the result of following union operation.

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 38. Which of the following statement is not CORRECT?

A : For non deterministic PDA, equivalence is undecidable

B : For deterministic PDA, equivalence is decidable

C : For deterministic PDA, equivalence is undecidable.

D : For non deterministic PDA, equivalence is decidable

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 40. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

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:

Q.no 45. CFG for balanced parenthesis

A:

B:

C:

D:

Q.no 46. Consider the finite automata and string given in following figure.The set of reachable

states for the given input string is ____________.

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

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 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:

Q.no 49. What is the output of below given regular expression?

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 50. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

Q.no 51. Consider the CFG given in following figure. Which sring is generated by it?

A : aaaabb

B : aabbbb

C : aabbab

D : abbbba

Q.no 52. Which of the following is/are Undecidable?

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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

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:

Q.no 56. Which of the following problems are decidable?

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,

Which of the following statements is true ?

A : L is recursive

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

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

Answer for Question No 1. is a

Answer for Question No 2. is b

Answer for Question No 3. is d

Answer for Question No 4. is a

Answer for Question No 5. is b

Answer for Question No 6. is d

Answer for Question No 7. is d

Answer for Question No 8. is b

Answer for Question No 9. is c

Answer for Question No 10. is d

Answer for Question No 11. is b

Answer for Question No 12. is b

Answer for Question No 13. is c

Answer for Question No 14. is b

Answer for Question No 15. is a

Answer for Question No 16. is c

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is d

Answer for Question No 18. is d

Answer for Question No 19. is b

Answer for Question No 20. is d

Answer for Question No 21. is c

Answer for Question No 22. is b

Answer for Question No 23. is d

Answer for Question No 24. is d

Answer for Question No 25. is d

Answer for Question No 26. is a

Answer for Question No 27. is a

Answer for Question No 28. is a

Answer for Question No 29. is b

Answer for Question No 30. is d

Answer for Question No 31. is b

Answer for Question No 32. is c

Answer for Question No 33. is b


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is d

Answer for Question No 35. is b

Answer for Question No 36. is a

Answer for Question No 37. is a

Answer for Question No 38. is c

Answer for Question No 39. is a

Answer for Question No 40. is d

Answer for Question No 41. is b

Answer for Question No 42. is b

Answer for Question No 43. is b

Answer for Question No 44. is a

Answer for Question No 45. is a

Answer for Question No 46. is a

Answer for Question No 47. is a

Answer for Question No 48. is b

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is c

Answer for Question No 52. is d

Answer for Question No 53. is b

Answer for Question No 54. is b

Answer for Question No 55. is b

Answer for Question No 56. is d

Answer for Question No 57. is b

Answer for Question No 58. is a

Answer for Question No 59. is d

Answer for Question No 60. is a

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. The language accepted by a turing machine is called ____________

A : Recursive Ennumerable

B : Recursive

C : Both (a) and (b)

D : PDA

Q.no 2. Which of the following is a simulator for non deterministic automata?

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

Q.no 4. Linear Bounded Automaton is a:

A : Finite Automaton

B : Turing Machine

C : Push down Automaton

D : Deterministic Finite Automata

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

Q.no 6. Regular expressions are closed under___________

A : Intersection

B : Union

C : Kleene star

D : ALL

Q.no 7. 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 8. An algorithm is called efficient if it runs in ____________ time on a serial computer.

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

Q.no 9. The output alphabet can be represented as

A:

B:

C:

D:

Q.no 10. Regular Grammar is a _______________

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

Q.no 12. A formal language is recursive if :

A : A total turing machine exists

B : A turing machine that halts for every input

C : Turing machine rejects if the input does not belong to the language

D : All of the mentioned

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 13. State whether following statement is true or false

A : TRUE

B : FALSE

C:

D:

Q.no 14. __________ is the graphical representation of a grammar.

A : Binary tree

B : Red black tree

C : Parse tree

D : Binary search 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

C : only two 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

Q.no 18. Which Grammar can be translated to deterministic finite automata

A : Left Linear Grammar

B : Right Linear Grammar

C : Context free grammar

D : Generic grammar

Q.no 19. Which of the following is correct for Chomsky hierarchy?

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. A turing machine with several tapes in known as:

A : Multi-tape turing machine

B : Poly tape turing maching

C : Universal turing machine

D : Complete turing machine

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.

A : Left Recursive Grammar

B : Non Recursive Grammar

C : Right Recursive Grammar

D : Right Linear Grammar

Q.no 23. Which of the following statements are correct

A : Statement 1 and 2 both are correct

B : Statement 1 is false but 2 is correct

C : Statement 1 and 2 both are false

D : Statement 1 is correct but 2 is false

Q.no 24. Describe the language generated by finite state machine given below.

A : Any string of odd number of a's

B : Any string of odd number of b’s

C : Any string of even number of a’s and odd number of b’s

D : Any string of odd number of a’s and odd number of b’s

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 ________.

A : DFA and NFA

B : Turing machine and DFA

C : DFA and turing machine

D : Mealy machine and DFA

Q.no 27. Which of the following is analogous to NFA and NPDA

A : Regular language and Context Free language

B : Regular language and Context Sensitive language

C : Context free language and Context Sensitive language

D : Non Regular language and Non Context Free language

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

Q.no 31. Which term belong in intersection of the diagram

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

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

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?

A : DFA AND NDFA

B : DPDA AND NPDA

C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine

D : single tape turing machine and multiple tape turing machine

Q.no 35. What does it mean when we say that an algorithm X is asymptotically more efficient
than Y?

A : X will always be a better choice for small inputs

B : X will always be a better choice for large inputs

C : Y will always be a better choice for small inputs

D : X will always be a better choice for all inputs

Q.no 36. Consider the CFG given in following figure. Which of the production is useless

production among it.

A:

B:

C:

D:

Q.no 37. Which of the following is not an application of Pumping Lemma?

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:

Q.no 38. Which of the following statement is not CORRECT?

A : For non deterministic PDA, equivalence is undecidable

B : For deterministic PDA, equivalence is decidable

C : For deterministic PDA, equivalence is undecidable.

D : For non deterministic PDA, equivalence is decidable

Q.no 39. What is the result of following union operation.

A:L

B : L'

C:f

D : empty

Q.no 40. Which of the given problems are NP-complete?

A : Node cover problems

B : Directed Hamilton Circuit Problem

C : Both (a) and (b)

D : Turing Machine

Q.no 41. consider the problem X given in following figure. And describe about it.

A : X is decidable

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

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

D : P3 is decidable if P3 is reducible to P2’s complement

Q.no 44. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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

Q.no 45. CFG for balanced parenthesis

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

states for the given input string is ____________.

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

C : Context free but not regular

D : Recursively enumerable but not context free

Q.no 49. Two languages L1 and L2 are given in following figure. Which statement is FALSE

about it?

A : L2 is context free

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

Q.no 50. Consider a regular 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 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

figure. Choose its correct answer from given options.

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:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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

Answer for Question No 1. is c

Answer for Question No 2. is b

Answer for Question No 3. is d

Answer for Question No 4. is b

Answer for Question No 5. is b

Answer for Question No 6. is d

Answer for Question No 7. is a

Answer for Question No 8. is a

Answer for Question No 9. is d

Answer for Question No 10. is a

Answer for Question No 11. is d

Answer for Question No 12. is d

Answer for Question No 13. is a

Answer for Question No 14. is c

Answer for Question No 15. is b

Answer for Question No 16. is c

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is b

Answer for Question No 18. is b

Answer for Question No 19. is b

Answer for Question No 20. is a

Answer for Question No 21. is d

Answer for Question No 22. is a

Answer for Question No 23. is a

Answer for Question No 24. is d

Answer for Question No 25. is c

Answer for Question No 26. is c

Answer for Question No 27. is a

Answer for Question No 28. is b

Answer for Question No 29. is d

Answer for Question No 30. is a

Answer for Question No 31. is d

Answer for Question No 32. is a

Answer for Question No 33. is a


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is b

Answer for Question No 35. is b

Answer for Question No 36. is d

Answer for Question No 37. is d

Answer for Question No 38. is c

Answer for Question No 39. is a

Answer for Question No 40. is c

Answer for Question No 41. is b

Answer for Question No 42. is b

Answer for Question No 43. is c

Answer for Question No 44. is b

Answer for Question No 45. is a

Answer for Question No 46. is b

Answer for Question No 47. is a

Answer for Question No 48. is c

Answer for Question No 49. is d

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is a

Answer for Question No 51. is d

Answer for Question No 52. is a

Answer for Question No 53. is b

Answer for Question No 54. is a

Answer for Question No 55. is a

Answer for Question No 56. is b

Answer for Question No 57. is c

Answer for Question No 58. is a

Answer for Question No 59. is a

Answer for Question No 60. is d

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

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

Q.no 2. The language accepted by Push down Automaton:

A : Recursive Language

B : Context free language

C : Linearly Bounded language

D : Non context free 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

true about it.

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

Q.no 5. A context free grammar is a ___________

A : English Grammar

B : Regular Grammar

C : Context Sensitive Grammar

D : Left Linear Grammar

Q.no 6. Which type of grammar is given in following figure?

A : Left Linear Grammar

B : Right Linear Grammar

C : Both right linear as well as left linear

D : Non Linear Grammar


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

Q.no 7. Which of the functions can a turing machine not perform?

A : Copying a string

B : Deleting a symbol

C : Accepting a pal

D : Inserting a symbol

Q.no 8. 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 9. 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 10. Transition function of non deterministic finite automata is

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

Q.no 14. The language accepted by a turing machine is called ____________

A : Recursive Ennumerable

B : Recursive

C : Both (a) and (b)

D : PDA

Q.no 15. Following language is represented by ______regular expression.

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

Q.no 19. Finite automata needs minimum ________number of stacks

A:0

B:1

C:2

D:3

Q.no 20. The value of n if turing machine is defined using n-tuples:

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

A : Writes the symbol

B : Moves the tape one cell left/right

C : Proceeds with next instruction or halts

D : Push the input in stack

Q.no 22. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

Q.no 23. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

Q.no 24. Consider a language given in following figure.CFG used to produce given language is
_____.

A:

B:

C:

D:

Q.no 25. Simplify the following identity?

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:

Q.no 26. Which of the following is a P-complete type of problem?

A : Circuit Value problem

B : Linear programming

C : Context free grammar membership

D : All of the mentioned

Q.no 27. In Moore machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

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.

A : Statement 1 is true and Statement 2 is true

B : Statement 1 is true and Statement 2 is false

C : Statement 1 can be true and Statement 2 is true

D : Statement 1 is false and Statement 2 is also false

Q.no 29. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

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

D : Determining of a universal turing machine and some input will halt

Q.no 30. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?

A : Every CFG for L is ambiguous

B : Every CFG for L is unambiguous

C : Every CFG is also regular

D : Every CFG for L is non regular

Q.no 31. How many strings can be generated as described in following figure.

A : 35

B : 49

C : 360

D : 720

Q.no 32. Consider a CFG given below.Corrsponding CFL is consists of ____________.

A : All length Palindromes

B : Odd length Palindromes

C : Even length Palindromes

D : prime number length palindromes

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 : Statement 1 is true but statement 2 is false

B : Statement 1 is false but statement 2 is true

C : Both the statements are true

D : Both the statements are false

Q.no 35. What is the result of following union operation.

A:L

B : L'

C:f

D : empty

Q.no 36. The travelling salesman problem can be solved using _________

A : A spanning tree

B : A minimum spanning tree

C : Bellman Ford algorithm

D : DFS traversal

Q.no 37. Complete the statement given in following figure to make it true with reference to CFG.

A : Left Recursive Grammar

B : Non Recursive Grammar

C : Right Recursive Grammar

D : Right Linear Grammar

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?

A : Context free language

B : Regular language

C : Both CFL and RL

D : non context free language

Q.no 39. Consider the given figure .what will be the next ID?

A:

B:

C:

D : None of the mentioned

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

D : All of the mentioned

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

states for the given input string is ____________.

A:

B:

C:

D:

Q.no 44. What is the output of below given regular expression?

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

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

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 48. Which of the following is/are Undecidable?

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

Q.no 50. Which of the following problems are decidable?

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:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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

D : P3 is decidable if P3 is reducible to P2’s complement

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

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1

Q.no 56. consider the problem X given in following figure. And describe about it.

A : X is decidable

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

Q.no 57. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is

A : Not recursive

B : Regular

C : Context free but not regular

D : Recursively enumerable but not context free

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:

Q.no 59. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

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

Answer for Question No 1. is a

Answer for Question No 2. is b

Answer for Question No 3. is b

Answer for Question No 4. is d

Answer for Question No 5. is c

Answer for Question No 6. is b

Answer for Question No 7. is d

Answer for Question No 8. is a

Answer for Question No 9. is a

Answer for Question No 10. is d

Answer for Question No 11. is b

Answer for Question No 12. is c

Answer for Question No 13. is b

Answer for Question No 14. is c

Answer for Question No 15. is c

Answer for Question No 16. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is b

Answer for Question No 18. is a

Answer for Question No 19. is a

Answer for Question No 20. is b

Answer for Question No 21. is d

Answer for Question No 22. is d

Answer for Question No 23. is b

Answer for Question No 24. is d

Answer for Question No 25. is a

Answer for Question No 26. is d

Answer for Question No 27. is a

Answer for Question No 28. is a

Answer for Question No 29. is a

Answer for Question No 30. is a

Answer for Question No 31. is c

Answer for Question No 32. is d

Answer for Question No 33. is a


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is c

Answer for Question No 35. is a

Answer for Question No 36. is b

Answer for Question No 37. is a

Answer for Question No 38. is d

Answer for Question No 39. is d

Answer for Question No 40. is d

Answer for Question No 41. is b

Answer for Question No 42. is d

Answer for Question No 43. is a

Answer for Question No 44. is b

Answer for Question No 45. is a

Answer for Question No 46. is c

Answer for Question No 47. is d

Answer for Question No 48. is d

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is d

Answer for Question No 51. is d

Answer for Question No 52. is b

Answer for Question No 53. is a

Answer for Question No 54. is c

Answer for Question No 55. is a

Answer for Question No 56. is b

Answer for Question No 57. is c

Answer for Question No 58. is b

Answer for Question No 59. is b

Answer for Question No 60. is c

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. In accordance to pumping lemma theorem of regular language, Complete the sentence

described in following figure.

A : i is greater than 0

B : i is less than 0

C : i is less than or equal to 0

D : i is greater than or equal to 0

Q.no 2. The language accepted by a turing machine is called ____________

A : Recursive Ennumerable

B : Recursive

C : Both (a) and (b)

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

Q.no 3. Linear Bounded Automaton is a:

A : Finite Automaton

B : Turing Machine

C : Push down Automaton

D : Deterministic Finite Automata

Q.no 4. 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 5. Regular expressions are closed under___________

A : Intersection

B : Union

C : Kleene star

D : ALL

Q.no 6. 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 7. Which of the following are not in NP?

A : All problems in P

B : Boolean Satisfiability problems

C : Integer factorization problem

D : None of the mentioned

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

Q.no 8. Which of the functions can a turing machine not perform?

A : Copying a string

B : Deleting a symbol

C : Accepting a pal

D : Inserting a symbol

Q.no 9. Which of the following statement is CORRECT?

A : A moore machine has no accepting states

B : A moore machine has accepting states

C : A Mealy machine has accepting states

D : Both machine has accepting states

Q.no 10. The output alphabet can be represented as

A:

B:

C:

D:

Q.no 11. Mealy and Moore machines are also called

A : Turing machines

B : Transducer

C : Linear bounded automata

D : both turing machine and linear bounded automata

Q.no 12. A formal language is recursive if :

A : A total turing machine exists

B : A turing machine that halts for every input

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

D : All of the mentioned

Q.no 13. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input

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

C : Queue and Input tape

D : All of the mentioned

Q.no 16. The generators of languages are

A : Regular expressions

B : Finite State Machine

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:

Q.no 18. A context free grammar is a ___________

A : English Grammar

B : Regular Grammar

C : Context Sensitive Grammar

D : Left Linear Grammar

Q.no 19. consider a Turing machine defined in following figure and state which statemnt is

always true about it.

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?

A : Context free language

B : Regular language

C : Both CFL and RL

D : non context free language

Q.no 23. Which among the following is not true for 2-way infinte TM?

A : Tape in both directions

B : Leftmost square not distinguished

C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.

D : Tape is only in one directions

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:

Q.no 25. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

Q.no 26. Simplify the following identity?

A:

B:

C:

D:

Q.no 27. Which of the following statement is not CORRECT?

A : For non deterministic PDA, equivalence is undecidable

B : For deterministic PDA, equivalence is decidable

C : For deterministic PDA, equivalence is undecidable.

D : For non deterministic PDA, equivalence is decidable

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

A : Statement 1 is true but statement 2 is false

B : Statement 1 is false but statement 2 is true

C : Both the statements are true

D : Both the statements are false

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

Q.no 30. What is the result of following union operation.

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.

A : Push Down automata

B : DFA

C : NDFA

D : Deterministic Turing machine


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 33. Languge described in following figure is _______________

A : Regular language

B : Non Regular language

C : Both regular and non regular

D : neighter a regular nor a nonregular language

Q.no 34. Consider the CFG given in following figure. Which of the production is useless

production among it.

A:

B:

C:

D:

Q.no 35. The travelling salesman problem can be solved using _________

A : A spanning tree

B : A minimum spanning tree

C : Bellman Ford algorithm

D : DFS traversal

Q.no 36. CFG for following 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 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 37. Which of the following statements are correct

A : Statement 1 and 2 both are correct

B : Statement 1 is false but 2 is correct

C : Statement 1 and 2 both are false

D : Statement 1 is correct but 2 is false

Q.no 38. Which among the following cannot be accepted by a regular grammar?

A : L is a set of numbers divisible by 2

B : L is a set of binary complement

C : L is a set of string with odd number of 0

D : L is a set of 0n1n

Q.no 39. What is the transition function of below mentioned machine

A:

B:

C:

D:

Q.no 40. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

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

states for the given input string is ____________.

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:

Q.no 43. Which of the following is/are Undecidable?

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:

Q.no 47. What is the output of below given regular expression?

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 48. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

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

C : M halts on all string ending in a 0

D : M halts on all string ending in a 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

Q.no 56. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

Q.no 57. what is the answer of the question descried in following figure.

A:6

B:4

C:2

D:8

Q.no 58. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

Q.no 59. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is

A : Not recursive

B : Regular

C : Context free but not regular


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 : Recursively enumerable but not context free

Q.no 60. Two languages L1 and L2 are given in following figure. Which statement is FALSE

about it?

A : L2 is context free

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

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

Answer for Question No 1. is d

Answer for Question No 2. is c

Answer for Question No 3. is b

Answer for Question No 4. is a

Answer for Question No 5. is d

Answer for Question No 6. is b

Answer for Question No 7. is d

Answer for Question No 8. is d

Answer for Question No 9. is a

Answer for Question No 10. is d

Answer for Question No 11. is b

Answer for Question No 12. is d

Answer for Question No 13. is b

Answer for Question No 14. is b

Answer for Question No 15. is d

Answer for Question No 16. is c

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is b

Answer for Question No 18. is c

Answer for Question No 19. is b

Answer for Question No 20. is b

Answer for Question No 21. is c

Answer for Question No 22. is d

Answer for Question No 23. is d

Answer for Question No 24. is d

Answer for Question No 25. is d

Answer for Question No 26. is a

Answer for Question No 27. is c

Answer for Question No 28. is c

Answer for Question No 29. is a

Answer for Question No 30. is a

Answer for Question No 31. is a

Answer for Question No 32. is d

Answer for Question No 33. is b


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is d

Answer for Question No 35. is b

Answer for Question No 36. is c

Answer for Question No 37. is a

Answer for Question No 38. is d

Answer for Question No 39. is c

Answer for Question No 40. is b

Answer for Question No 41. is a

Answer for Question No 42. is b

Answer for Question No 43. is d

Answer for Question No 44. is a

Answer for Question No 45. is c

Answer for Question No 46. is a

Answer for Question No 47. is b

Answer for Question No 48. is b

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is c

Answer for Question No 51. is a

Answer for Question No 52. is b

Answer for Question No 53. is a

Answer for Question No 54. is b

Answer for Question No 55. is b

Answer for Question No 56. is b

Answer for Question No 57. is b

Answer for Question No 58. is b

Answer for Question No 59. is c

Answer for Question No 60. is d

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

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

B : For every DFA there is a regular expression denoting its language

C : For a regular expression r, there does not exist NFA with L (r )

D : For every regular expression there exist a DFA accepting its language

Q.no 2. Which of the following statement is CORRECT?

A : A moore machine has no accepting states

B : A moore machine has accepting states

C : A Mealy machine has accepting states

D : Both machine has accepting states

Q.no 3. Decidable can be taken as a synonym to:

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

Q.no 4. The statement A TM can not solve halting problem is

A : TRUE

B : FALSE

C:

D:

Q.no 5. Moore machine is an application of

A : Finite Automata without output

B : Finite Automata with output

C:

D:

Q.no 6. In accordance to pumping lemma theorem of regular language, Complete the sentence

described in following figure.

A : i is greater than 0

B : i is less than 0

C : i is less than or equal to 0

D : i is greater than or equal to 0

Q.no 7. Turing machine can be represented using the following tools:

A : Transition graph

B : Transition table

C : Queue and Input tape

D : All of the mentioned

Q.no 8. Regular Expression R and the language it describes can be represented as

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 : Elimination of null production

B : Elimination of unit production

C : converting a given grammar to chomsky normal form

D : converting a given grammar to greibach normal form

Q.no 10. Regular Grammar is a _______________

A : Type 3 grammar

B : Type 2 grammar

C : Type 1 grammar

D : Type 0 grammar

Q.no 11. Transition function of Turing Machine is

A:

B:

C:

D:

Q.no 12. Mealy and Moore machines are also called

A : Turing machines

B : Transducer

C : Linear bounded automata

D : both turing machine and linear bounded automata

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 13. The output alphabet can be represented as

A:

B:

C:

D:

Q.no 14. Finite-state acceptors for the nested words can be:

A : nested word automata

B : push down automata

C : ndfa

D : ndpda

Q.no 15. A context free grammar is a ___________

A : English Grammar

B : Regular Grammar

C : Context Sensitive Grammar

D : Left Linear 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

Q.no 21. Which of the following is not an application of Pumping Lemma?

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.

A : Left Recursive Grammar

B : Non Recursive Grammar

C : Right Recursive Grammar

D : Right Linear Grammar

Q.no 23. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

Q.no 24. Consider the given figure .what will be the next ID?

A:

B:

C:

D : None of the mentioned

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

Q.no 28. What is the result of following union operation.

A:L

B : L'

C:f

D : empty

Q.no 29. The travelling salesman problem can be solved using _________

A : A spanning tree

B : A minimum spanning tree

C : Bellman Ford algorithm

D : DFS traversal

Q.no 30. Consider the language given in following figure, what type of language it is?

A : Context free language

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

C : Both CFL and RL

D : non context free language

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

A : Pumping lemma of regular language

B : Pigeon Hole principle

C : Count principle

D : Pumping lemma of context free language

Q.no 33. Which of the following is analogous to NFA and NPDA

A : Regular language and Context Free language

B : Regular language and Context Sensitive language

C : Context free language and Context Sensitive language

D : Non Regular language and Non Context Free language

Q.no 34. CFG for following regular expression is ____.

A:

B:

C:

D:

Q.no 35. In Mealy machine the output is depends on

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 : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

Q.no 36. Simplify the following identity?

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

production among it.


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

A:

B:

C:

D:

Q.no 39. What is the transition function of below mentioned machine

A:

B:

C:

D:

Q.no 40. Which term belong in intersection of the diagram

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

C : Context free but not regular

D : Recursively enumerable but not context free

Q.no 43. Consider a regular language described in following figure. Which regular expression is

used to represent it?

A:

B:

C:

D:

Q.no 44. What is the output of below given regular expression?

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:

Q.no 45. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

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

figure. Choose its correct answer from given options.

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. Given regular expression is correctly represented as __________

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:

Q.no 51. Which of the following is/are Undecidable?

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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

Q.no 53. Which of the following problems are decidable?

A : 1, 2, 3, 4

B : 1, 2

C : 2,3,4

D : 3, 4

Q.no 54. CFG for balanced parenthesis

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1

Q.no 58. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

D : Only a is true

Q.no 60. Consider the finite automata and string given in following figure.The set of reachable

states for the given input string is ____________.

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

Answer for Question No 1. is c

Answer for Question No 2. is a

Answer for Question No 3. is a

Answer for Question No 4. is a

Answer for Question No 5. is b

Answer for Question No 6. is d

Answer for Question No 7. is d

Answer for Question No 8. is b

Answer for Question No 9. is d

Answer for Question No 10. is a

Answer for Question No 11. is a

Answer for Question No 12. is b

Answer for Question No 13. is d

Answer for Question No 14. is a

Answer for Question No 15. is c

Answer for Question No 16. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is c

Answer for Question No 18. is a

Answer for Question No 19. is a

Answer for Question No 20. is c

Answer for Question No 21. is d

Answer for Question No 22. is a

Answer for Question No 23. is a

Answer for Question No 24. is d

Answer for Question No 25. is c

Answer for Question No 26. is a

Answer for Question No 27. is b

Answer for Question No 28. is a

Answer for Question No 29. is b

Answer for Question No 30. is d

Answer for Question No 31. is a

Answer for Question No 32. is b

Answer for Question No 33. is a


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is c

Answer for Question No 35. is b

Answer for Question No 36. is a

Answer for Question No 37. is d

Answer for Question No 38. is d

Answer for Question No 39. is c

Answer for Question No 40. is d

Answer for Question No 41. is c

Answer for Question No 42. is c

Answer for Question No 43. is a

Answer for Question No 44. is b

Answer for Question No 45. is b

Answer for Question No 46. is b

Answer for Question No 47. is a

Answer for Question No 48. is c

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is a

Answer for Question No 51. is d

Answer for Question No 52. is b

Answer for Question No 53. is d

Answer for Question No 54. is a

Answer for Question No 55. is b

Answer for Question No 56. is a

Answer for Question No 57. is a

Answer for Question No 58. is b

Answer for Question No 59. is a

Answer for Question No 60. is a

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. 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 2. While converting the context free grammar into chomsky normal form, which of the
following is not necessary

A : Elimination of null production

B : Elimination of unit production

C : converting a given grammar to chomsky normal form

D : converting a given grammar to greibach normal form

Q.no 3. An algorithm is called efficient if it runs in ____________ time on a serial computer.

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

Q.no 5. Which of the functions can a turing machine not perform?

A : Copying a string

B : Deleting a symbol

C : Accepting a pal

D : Inserting a symbol

Q.no 6. Decidable can be taken as a synonym to:

A : Recursive

B : Non Recursive

C : Recognizable

D : Non Recognizable

Q.no 7. Which of the following is not a regular expression?

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

B : For every DFA there is a regular expression denoting its language

C : For a regular expression r, there does not exist NFA with L (r )

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

D : All three actions are possible

Q.no 10. Transition function of Turing Machine is

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:

Q.no 12. Which of the following conversion is not feasible?

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 : Regular expression to automaton conversion

B : Automaton to Regular Expression Conversion

C : NFA to DFA

D : Regular expression to FA with output conversion

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

C : only two paths

D : zero path

Q.no 14. Which of the following is correct for Chomsky hierarchy?

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. A turing machine with several tapes in known as:

A : Multi-tape turing machine

B : Poly tape turing maching

C : Universal turing machine

D : Complete turing machine

Q.no 16. Which among the following is incorrect with reference to a derivation tree?

A : Every vertex has a label which is a terminal or a variable.

B : The root has a label which can be a terminal.

C : The label of the internal vertex is a variable.

D : Terminal node has a lable which can be a terminal

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

Q.no 18. Mealy and Moore machines are also called

A : Turing machines

B : Transducer

C : Linear bounded automata

D : both turing machine and linear bounded automata

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

Q.no 20. The value of n if turing machine is defined using n-tuples:

A:6

B:7

C:8

D:5

Q.no 21. Which of the following pairs have different expressive power?

A : DFA AND NDFA

B : DPDA AND NPDA

C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine

D : single tape turing machine and multiple 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

A : Context free language

B : Regular language

C : Both CFL and RL

D : non context free language

Q.no 23. Consider the given figure .what will be the next ID?

A:

B:

C:

D : None of the mentioned

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 : X will always be a better choice for small inputs

B : X will always be a better choice for large inputs

C : Y will always be a better choice for small inputs

D : X will always be a better choice for all inputs

Q.no 26. Which of the following statement is not CORRECT?

A : For non deterministic PDA, equivalence is undecidable

B : For deterministic PDA, equivalence is decidable


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 : For deterministic PDA, equivalence is undecidable.

D : For non deterministic PDA, equivalence is decidable

Q.no 27. Languge described in following figure is _______________

A : Regular language

B : Non Regular language

C : Both regular and non regular

D : neighter a regular nor a nonregular 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

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

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 31. Which of the following is true for the language?

A : It is not accepted by a Turing Machine

B : It is regular but not context-free

C : It is context-free but not regular

D : It is neither regular nor context-free, but accepted by a Turing machine

Q.no 32. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.

A : Push Down automata

B : DFA

C : NDFA

D : Deterministic Turing machine

Q.no 33. Which of the following is a P-complete type of problem?

A : Circuit Value problem

B : Linear programming

C : Context free grammar membership

D : All of the mentioned

Q.no 34. Which of the given problems are NP-complete?

A : Node cover problems

B : Directed Hamilton Circuit Problem

C : Both (a) and (b)

D : Turing Machine

Q.no 35. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input


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

D : on all current state, current input and next state

Q.no 36. In context to the process of removing useless symbols, which of the following is correct?

A : We remove the Nullable variables

B : We eliminate the unit productions

C : We eliminate products which yield no terminals

D : We eliminate the both unit productions and Nullable variables

Q.no 37. PDA is more powerful than ____ but less powerful than ________.

A : DFA and NFA

B : Turing machine and DFA

C : DFA and turing machine

D : Mealy machine and DFA

Q.no 38. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

Q.no 39. Complete the statement given in following figure to make it true with reference to CFG.

A : Left Recursive Grammar

B : Non Recursive Grammar

C : Right Recursive Grammar

D : Right Linear Grammar

Q.no 40. Hamilton Circuit problem is a special case of ____________

A : Travelling Salesman Problem

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

D : Only a is true

Q.no 42. Consider a regular language described in following figure. Which regular expression is

used to represent it?

A:

B:

C:

D:

Q.no 43. Consider the finite automata and string given in following figure.The set of reachable

states for the given input string is ____________.

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 44. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

Q.no 45. The languages L1 and L2 are defined in following figure. Intersection of L1 and L2 is

A : Not recursive

B : Regular

C : Context free but not regular

D : Recursively enumerable but not context free

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

Q.no 48. Which of the following problems are decidable?

A : 1, 2, 3, 4

B : 1, 2

C : 2,3,4

D : 3, 4

Q.no 49. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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

Q.no 51. CFG for balanced parenthesis

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:

Q.no 55. Which of the following is/are Undecidable?

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,

Which of the following statements is true ?

A : L is recursive

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

Q.no 58. A PDA machine configuration (p, w, y) can be correctly represented as:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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

Answer for Question No 1. is a

Answer for Question No 2. is d

Answer for Question No 3. is a

Answer for Question No 4. is a

Answer for Question No 5. is d

Answer for Question No 6. is a

Answer for Question No 7. is b

Answer for Question No 8. is c

Answer for Question No 9. is d

Answer for Question No 10. is a

Answer for Question No 11. is a

Answer for Question No 12. is d

Answer for Question No 13. is b

Answer for Question No 14. is b

Answer for Question No 15. is a

Answer for Question No 16. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is c

Answer for Question No 18. is b

Answer for Question No 19. is c

Answer for Question No 20. is b

Answer for Question No 21. is b

Answer for Question No 22. is d

Answer for Question No 23. is d

Answer for Question No 24. is c

Answer for Question No 25. is b

Answer for Question No 26. is c

Answer for Question No 27. is b

Answer for Question No 28. is a

Answer for Question No 29. is a

Answer for Question No 30. is d

Answer for Question No 31. is d

Answer for Question No 32. is d

Answer for Question No 33. is d


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is c

Answer for Question No 35. is b

Answer for Question No 36. is c

Answer for Question No 37. is c

Answer for Question No 38. is a

Answer for Question No 39. is a

Answer for Question No 40. is a

Answer for Question No 41. is a

Answer for Question No 42. is a

Answer for Question No 43. is a

Answer for Question No 44. is b

Answer for Question No 45. is c

Answer for Question No 46. is a

Answer for Question No 47. is b

Answer for Question No 48. is d

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is a

Answer for Question No 52. is b

Answer for Question No 53. is b

Answer for Question No 54. is b

Answer for Question No 55. is d

Answer for Question No 56. is b

Answer for Question No 57. is a

Answer for Question No 58. is a

Answer for Question No 59. is a

Answer for Question No 60. is c

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. Regular Grammar is a _______________

A : Type 3 grammar

B : Type 2 grammar

C : Type 1 grammar

D : Type 0 grammar

Q.no 2. Moore machine is an application of

A : Finite Automata without output

B : Finite Automata with output

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:

Q.no 5. 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 6. Transition function of non deterministic finite automata is

A:

B:

C:

D:

Q.no 7. Which Grammar can be translated to deterministic finite automata

A : Left Linear Grammar

B : Right Linear Grammar

C : Context free grammar

D : Generic grammar

Q.no 8. Which of the following statement is not 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

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

C : In derivation of string any nonterminal is selected to obtain next step of derivation

D : In derivation tree root node is always labelled by starting symbol

Q.no 9. Which among the following is incorrect with reference to a derivation tree?

A : Every vertex has a label which is a terminal or a variable.

B : The root has a label which can be a terminal.

C : The label of the internal vertex is a variable.

D : Terminal node has a lable which can be a terminal

Q.no 10. Which of the following statement is correct

A : Moore machine and Mealy machine both has five 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

D : Moore machine and Mealy machine both has six 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

Q.no 12. CFG is not closed under

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 _____________

A : Context Free Language

B : Turing Acceptable Language

C : Recursively Enumerable Language

D : Turing Decidable Language

Q.no 16. The set generated by below given regular expression is ______________________.

A:

B:

C:

D:

Q.no 17. Following language is represented by ______regular expression.

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

D : All three actions are possible

Q.no 19. Which of the following statement is CORRECT?

A : A moore machine has no accepting states

B : A moore machine has accepting states

C : A Mealy machine has accepting states

D : Both machine has accepting states

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?

A : Tape in both directions

B : Leftmost square not distinguished

C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.

D : Tape is only in one directions

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.

A : Any string of odd number of a's

B : Any string of odd number of b’s

C : Any string of even number of a’s and odd number of b’s

D : Any string of odd number of a’s and odd number of b’s

Q.no 23. How many strings can be generated as described in following figure.

A : 35

B : 49

C : 360

D : 720

Q.no 24. Which of the following is analogous to NFA and NPDA

A : Regular language and Context Free language

B : Regular language and Context Sensitive language

C : Context free language and Context Sensitive language

D : Non Regular language and Non Context Free language

Q.no 25. In Moore machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

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?

A : Statement 1 is true but statement 2 is false

B : Statement 1 is false but statement 2 is true

C : Both the statements are true

D : Both the statements are false

Q.no 27. Which among the following cannot be accepted by a regular grammar?

A : L is a set of numbers divisible by 2

B : L is a set of binary complement

C : L is a set of string with odd number of 0

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

Q.no 29. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

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 31. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

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

D : All of the mentioned

Q.no 33. Which of the following statement is correct for a concept called inherent ambiguity in
CFL?

A : Every CFG for L is ambiguous

B : Every CFG for L is unambiguous

C : Every CFG is also regular

D : Every CFG for L is non regular

Q.no 34. Consider a language given in following figure.CFG used to produce given language is
_____.

A:

B:

C:

D:

Q.no 35. Which of the following is a P-complete type of problem?

A : Circuit Value problem


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 : Linear programming

C : Context free grammar membership

D : All of the mentioned

Q.no 36. Which term belong in intersection of the diagram

A : NP

B:P

C : NP Hard

D : NP Complete

Q.no 37. Which of the following is not an application of Pumping Lemma?

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.

A : Statement 1 is true and Statement 2 is true

B : Statement 1 is true and Statement 2 is false

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

C : Statement 1 can be true and Statement 2 is true

D : Statement 1 is false and Statement 2 is also false

Q.no 39. CFG for following regular expression is ____.

A:

B:

C:

D:

Q.no 40. Languge described in following figure is _______________

A : Regular language

B : Non Regular language

C : Both regular and non regular

D : neighter a regular nor a nonregular 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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1


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 42. what is the answer of the question descried in following figure.

A:6

B:4

C:2

D:8

Q.no 43. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

Q.no 44. Consider the statement given in following figure and describe the language L. L is

________.

A : Decidable and Recursively Enumerable

B : Undecidable but Recursively Enumerable

C : Undecidable and Not Recursively Enumerable

D : Decidable but not Recursively Enumerable

Q.no 45. consider the problem X given in following figure. And describe about it.

A : X is decidable

B : X is undecidable but partially decidable


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 : X is undecidable and not even partially decidable

D : X is not a decision problem

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

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

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

used to represent it?

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

C : Context free but not regular

D : Recursively enumerable but not context free

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

Q.no 59. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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

Answer for Question No 1. is a

Answer for Question No 2. is b

Answer for Question No 3. is a

Answer for Question No 4. is a

Answer for Question No 5. is a

Answer for Question No 6. is d

Answer for Question No 7. is b

Answer for Question No 8. is c

Answer for Question No 9. is b

Answer for Question No 10. is d

Answer for Question No 11. is d

Answer for Question No 12. is c

Answer for Question No 13. is a

Answer for Question No 14. is a

Answer for Question No 15. is d

Answer for Question No 16. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is c

Answer for Question No 18. is d

Answer for Question No 19. is a

Answer for Question No 20. is a

Answer for Question No 21. is d

Answer for Question No 22. is d

Answer for Question No 23. is c

Answer for Question No 24. is a

Answer for Question No 25. is a

Answer for Question No 26. is c

Answer for Question No 27. is d

Answer for Question No 28. is b

Answer for Question No 29. is a

Answer for Question No 30. is a

Answer for Question No 31. is d

Answer for Question No 32. is d

Answer for Question No 33. is a


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is d

Answer for Question No 35. is d

Answer for Question No 36. is d

Answer for Question No 37. is d

Answer for Question No 38. is a

Answer for Question No 39. is c

Answer for Question No 40. is b

Answer for Question No 41. is a

Answer for Question No 42. is b

Answer for Question No 43. is b

Answer for Question No 44. is b

Answer for Question No 45. is b

Answer for Question No 46. is a

Answer for Question No 47. is d

Answer for Question No 48. is a

Answer for Question No 49. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is b

Answer for Question No 52. is a

Answer for Question No 53. is d

Answer for Question No 54. is b

Answer for Question No 55. is c

Answer for Question No 56. is a

Answer for Question No 57. is a

Answer for Question No 58. is b

Answer for Question No 59. is b

Answer for Question No 60. is b

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

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

Q.no 2. The generators of languages are

A : Regular expressions

B : Finite State Machine

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

C : only two paths

D : zero path

Q.no 4. A deterministic turing machine is:

A : Ambiguous Turing Machine

B : Unambiguous Turing Machine

C : Non-Deterministic

D : Deterministic Finite Automata

Q.no 5. Which of the following is a simulator for non deterministic automata?

A : Gedit

B : JFLAP

C : FAUTO

D : grep

Q.no 6. Which of the following statement is CORRECT?

A : A moore machine has no accepting states

B : A moore machine has accepting states

C : A Mealy machine has accepting states

D : Both machine has accepting states

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

Q.no 8. The statement A TM can not solve halting problem is

A : TRUE

B : FALSE

C:

D:

Q.no 9. __________ is the graphical representation of a grammar.

A : Binary tree

B : Red black tree

C : Parse tree

D : Binary search 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

Q.no 11. State whether following statement is true or false

A : TRUE

B : FALSE

C:

D:

Q.no 12. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input

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 13. Which of the following is correct for Chomsky hierarchy?

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 14. NFA in its name has non-deterministic because of _____________________

A : The result is undetermined

B : The choice of path is non-deterministic

C : The state to be transited next is non-deterministic

D : The choice of path is deterministic

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 : Elimination of null production

B : Elimination of unit production

C : converting a given grammar to chomsky normal form


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

D : converting a given grammar to greibach normal form

Q.no 18. Following language is represented by ______regular expression.

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

A : Elimination of null production

B : Elimination of unit production

C : Elimination of Left recursion

D : converting a given grammar to chomsky normal form

Q.no 23. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

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

Q.no 25. Which of the following statements is False?

A : For every non-deterministic Turing machine, there exists an equivalent deterministic Turing
machine.

B : Turing recognizable languages are closed under union and complementation.

C : Turing decidable languages are closed under intersection


and complementation.

D : Turing recognizable languages are closed under union and intersection.

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?

A : Statement 1 is true but statement 2 is false

B : Statement 1 is false but statement 2 is true

C : Both the statements are true

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

D : Both the statements are false

Q.no 27. CFG for following regular expression is ____.

A:

B:

C:

D:

Q.no 28. Which of the following is a P-complete type of problem?

A : Circuit Value problem

B : Linear programming

C : Context free grammar membership

D : All of the mentioned

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

Q.no 30. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

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:

D : None of the mentioned

Q.no 32. Turing machine is more powerful than Finite State Machine because

A : Tape movement is confined to one direction

B : It has no finite state

C : It has the capability to remember arbitrarily long sequences of input symbols

D : It has tape symbols

Q.no 33. Which of the following is true for the language?

A : It is not accepted by a Turing Machine

B : It is regular but not context-free

C : It is context-free but not regular

D : It is neither regular nor context-free, but accepted by a Turing machine

Q.no 34. Which of the following statement is not CORRECT?

A : For non deterministic PDA, equivalence is undecidable

B : For deterministic PDA, equivalence is decidable

C : For deterministic PDA, equivalence is undecidable.

D : For non deterministic PDA, equivalence is decidable

Q.no 35. If the PDA does not stop on an accepting state and the stack is not empty, the string is:

A : rejected

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

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 36. Which term belong in intersection of the diagram

A : NP

B:P

C : NP Hard

D : NP Complete

Q.no 37. Which of the following statements are correct

A : Statement 1 and 2 both are correct

B : Statement 1 is false but 2 is correct

C : Statement 1 and 2 both are false

D : Statement 1 is correct but 2 is false

Q.no 38. Consider a CFG given below.Corrsponding CFL is consists of ____________.

A : All length Palindromes

B : Odd length Palindromes

C : Even length Palindromes

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 : prime number length palindromes

Q.no 39. The travelling salesman problem can be solved using _________

A : A spanning tree

B : A minimum spanning tree

C : Bellman Ford algorithm

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?

A : Push Down Automata

B : Non deterministic Finite Automata

C : Turing machines

D : Deterministic Finite Automata

Q.no 41. What is the output of below given regular expression?

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:

Q.no 43. Given regular expression is correctly represented as __________

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:

Q.no 45. Which of the following problems are decidable?

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

C : Context free but not regular

D : Recursively enumerable but not context free

Q.no 49. CFG for balanced parenthesis

A:

B:

C:

D:

Q.no 50. Which of the following is/are Undecidable?

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

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

Q.no 52. Consider the finite automata and string given in following figure.The set of reachable

states for the given input string is ____________.

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 language L defined in following figure is ______.

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

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

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

figure. Choose its correct answer from given options.

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

Answer for Question No 1. is b

Answer for Question No 2. is c

Answer for Question No 3. is b

Answer for Question No 4. is b

Answer for Question No 5. is b

Answer for Question No 6. is a

Answer for Question No 7. is d

Answer for Question No 8. is a

Answer for Question No 9. is c

Answer for Question No 10. is c

Answer for Question No 11. is a

Answer for Question No 12. is b

Answer for Question No 13. is b

Answer for Question No 14. is b

Answer for Question No 15. is a

Answer for Question No 16. is c

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is d

Answer for Question No 18. is c

Answer for Question No 19. is a

Answer for Question No 20. is a

Answer for Question No 21. is b

Answer for Question No 22. is c

Answer for Question No 23. is b

Answer for Question No 24. is a

Answer for Question No 25. is b

Answer for Question No 26. is c

Answer for Question No 27. is c

Answer for Question No 28. is d

Answer for Question No 29. is c

Answer for Question No 30. is a

Answer for Question No 31. is d

Answer for Question No 32. is c

Answer for Question No 33. is d


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is c

Answer for Question No 35. is a

Answer for Question No 36. is d

Answer for Question No 37. is a

Answer for Question No 38. is d

Answer for Question No 39. is b

Answer for Question No 40. is c

Answer for Question No 41. is b

Answer for Question No 42. is b

Answer for Question No 43. is c

Answer for Question No 44. is a

Answer for Question No 45. is d

Answer for Question No 46. is b

Answer for Question No 47. is b

Answer for Question No 48. is c

Answer for Question No 49. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is d

Answer for Question No 51. is a

Answer for Question No 52. is a

Answer for Question No 53. is c

Answer for Question No 54. is b

Answer for Question No 55. is b

Answer for Question No 56. is b

Answer for Question No 57. is a

Answer for Question No 58. is d

Answer for Question No 59. is a

Answer for Question No 60. is b

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

Q.no 1. A formal language is recursive if :

A : A total turing machine exists

B : A turing machine that halts for every input

C : Turing machine rejects if the input does not belong to the language

D : All of the mentioned

Q.no 2. Decidable can be taken as a synonym to:

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

A : Subset Construction method


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 : Warshalls Algorithm

C : Ardens theorem

D : Prims Algorithm

Q.no 4. Is Turing machine is more powerful than Deterministic Finite Automata?

A : TRUE

B : FALSE

C:

D:

Q.no 5. A CFG consist of ____tuples

A:5

B:4

C:3

D:6

Q.no 6. Which of the following is a simulator for non deterministic automata?

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:

Q.no 9. The statement A TM can not solve halting problem is

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

D : All three actions are possible

Q.no 11. State whether following statement is true or false

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

Q.no 13. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input

Q.no 14. Transition function of non deterministic finite automata is

A:

B:

C:

D:

Q.no 15. Which of the following statement is correct

A : Moore machine and Mealy machine both has five 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

D : Moore machine and Mealy machine both has six tuples

Q.no 16. Which among the following is incorrect with reference to a derivation tree?

A : Every vertex has a label which is a terminal or a variable.

B : The root has a label which can be a terminal.

C : The label of the internal vertex is a variable.

D : Terminal node has a lable which can be a terminal

Q.no 17. Which of the following is correct for Chomsky hierarchy?

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

Q.no 18. Finite automata needs minimum ________number of stacks

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

Q.no 20. Linear Bounded Automaton is a:

A : Finite Automaton

B : Turing Machine

C : Push down Automaton

D : Deterministic Finite Automata

Q.no 21. Which among the following cannot be accepted by a regular grammar?

A : L is a set of numbers divisible by 2

B : L is a set of binary complement

C : L is a set of string with odd number of 0

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 : All of the mentioned

Q.no 23. Two finite states are equivalent if

A : Both are final states

B : Both are non final states

C : one is final state and one is non final state

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 25. Which of the following statement is not CORRECT?

A : For non deterministic PDA, equivalence is undecidable

B : For deterministic PDA, equivalence is decidable

C : For deterministic PDA, equivalence is undecidable.

D : For non deterministic PDA, equivalence is decidable

Q.no 26. In context to the process of removing useless symbols, which of the following is correct?

A : We remove the Nullable variables

B : We eliminate the unit productions

C : We eliminate products which yield no terminals

D : We eliminate the both unit productions and Nullable variables

Q.no 27. What is the result of following union operation.

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?

A : Writes the symbol

B : Moves the tape one cell left/right

C : Proceeds with next instruction or halts

D : Push the input in stack

Q.no 29. Consider the language given in following figure, what type of language it is?

A : Context free language

B : Regular language

C : Both CFL and RL

D : non context free 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

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

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?

A : Statement 1 is true but statement 2 is false

B : Statement 1 is false but statement 2 is true

C : Both the statements are true

D : Both the statements are false

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

A : Alternating Turing Machine

B : Probabalistic Turing Machine

C : Read-only turing Machine

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?

A : Every CFG for L is ambiguous

B : Every CFG for L is unambiguous

C : Every CFG is also regular

D : Every CFG for L is non regular

Q.no 35. The complexity class P consist of all the decision problems that can be solved by
___________using polynomial amount of computation time.

A : Push Down automata

B : DFA

C : NDFA

D : Deterministic Turing machine

Q.no 36. Turing machine is more powerful than Finite State Machine because

A : Tape movement is confined to one direction

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 : It has no finite state

C : It has the capability to remember arbitrarily long sequences of input symbols

D : It has tape symbols

Q.no 37. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

Q.no 38. While converting the context free grammar into Greibach normal form, which of the
following is necessary

A : Elimination of null production

B : Elimination of unit production

C : Elimination of Left recursion

D : converting a given grammar to chomsky normal form

Q.no 39. Consider the CFG given in following figure. Which of the production is useless

production among it.

A:

B:

C:

D:

Q.no 40. CFG for following regular expression is ____.

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

________.

A : Decidable and Recursively Enumerable

B : Undecidable but Recursively Enumerable

C : Undecidable and Not Recursively Enumerable

D : Decidable but not Recursively Enumerable

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:

Q.no 45. Which of the following problems are decidable?

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

D : P3 is decidable if P3 is reducible to P2’s complement

Q.no 49. Consider the following three regular expressions and two statements shown in below

figure. Choose its correct answer from given options.

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

C : Context free but not regular

D : Recursively enumerable but not context free

Q.no 55. consider the problem X given in following figure. And describe about it.

A : X is decidable

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

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:

Q.no 57. Which of the following is/are Undecidable?

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

Answer for Question No 1. is d

Answer for Question No 2. is a

Answer for Question No 3. is a

Answer for Question No 4. is a

Answer for Question No 5. is b

Answer for Question No 6. is b

Answer for Question No 7. is c

Answer for Question No 8. is a

Answer for Question No 9. is a

Answer for Question No 10. is d

Answer for Question No 11. is a

Answer for Question No 12. is b

Answer for Question No 13. is b

Answer for Question No 14. is d

Answer for Question No 15. is d

Answer for Question No 16. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is b

Answer for Question No 18. is a

Answer for Question No 19. is b

Answer for Question No 20. is b

Answer for Question No 21. is d

Answer for Question No 22. is d

Answer for Question No 23. is d

Answer for Question No 24. is c

Answer for Question No 25. is c

Answer for Question No 26. is c

Answer for Question No 27. is a

Answer for Question No 28. is d

Answer for Question No 29. is d

Answer for Question No 30. is a

Answer for Question No 31. is c

Answer for Question No 32. is c

Answer for Question No 33. is d


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is a

Answer for Question No 35. is d

Answer for Question No 36. is c

Answer for Question No 37. is b

Answer for Question No 38. is c

Answer for Question No 39. is d

Answer for Question No 40. is c

Answer for Question No 41. is b

Answer for Question No 42. is b

Answer for Question No 43. is d

Answer for Question No 44. is a

Answer for Question No 45. is d

Answer for Question No 46. is c

Answer for Question No 47. is b

Answer for Question No 48. is c

Answer for Question No 49. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is c

Answer for Question No 51. is b

Answer for Question No 52. is b

Answer for Question No 53. is c

Answer for Question No 54. is c

Answer for Question No 55. is b

Answer for Question No 56. is a

Answer for Question No 57. is d

Answer for Question No 58. is a

Answer for Question No 59. is d

Answer for Question No 60. is b

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

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

Q.no 3. Which of the following is correct for Chomsky hierarchy?

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

Q.no 4. Which of the following statement is not true?

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

C : In derivation of string any nonterminal is selected to obtain next step of derivation

D : In derivation tree root node is always labelled by starting symbol

Q.no 5. Turing machine can be represented using the following tools:

A : Transition graph

B : Transition table

C : Queue and Input tape

D : All of the mentioned

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

Q.no 8. A PDA chooses the next move based on

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

B : Next input symbol

C : on stack contents

D : uses all current state ,next input symbol and top of the stack

Q.no 9. 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 10. Which of the following are not in NP?

A : All problems in P

B : Boolean Satisfiability problems

C : Integer factorization problem

D : None of the mentioned

Q.no 11. Non deterministic finite automata to deterministic finite automata conversion is done
via

A : Subset Construction method

B : Warshalls Algorithm

C : Ardens theorem

D : Prims Algorithm

Q.no 12. Pushdown automata consists of _____

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

Q.no 16. Finite automata needs minimum ________number of stacks

A:0

B:1

C:2

D:3

Q.no 17. Finite-state acceptors for the nested words can be:

A : nested word automata

B : push down automata

C : ndfa

D : ndpda

Q.no 18. Transition function of Turing Machine is

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

B : For every DFA there is a regular expression denoting its language

C : For a regular expression r, there does not exist NFA with L (r )

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

Q.no 22. Which of the given problems are NP-complete?

A : Node cover problems

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

B : Directed Hamilton Circuit Problem

C : Both (a) and (b)

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?

A : Context free language

B : Regular language

C : Both CFL and RL

D : non context free 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.

A : Push Down automata

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

D : Deterministic Turing machine

Q.no 27. Simplify the following identity?

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

A : Pumping lemma of regular language

B : Pigeon Hole principle

C : Count principle

D : Pumping lemma of context free language

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

B : A minimum spanning tree

C : Bellman Ford algorithm

D : DFS traversal

Q.no 31. Which of the following statements is False?

A : For every non-deterministic Turing machine, there exists an equivalent deterministic Turing
machine.

B : Turing recognizable languages are closed under union and complementation.

C : Turing decidable languages are closed under intersection


and complementation.

D : Turing recognizable languages are closed under union and intersection.

Q.no 32. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

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?

A : Push Down Automata

B : Non deterministic Finite Automata

C : Turing machines

D : Deterministic Finite Automata

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:

Q.no 35. Which of the following is a P-complete type of problem?

A : Circuit Value problem

B : Linear programming

C : Context free grammar membership

D : All of the mentioned

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

Q.no 37. Consider a CFG given below.Corrsponding CFL is consists of ____________.

A : All length Palindromes

B : Odd length Palindromes

C : Even length Palindromes

D : prime number length palindromes

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

Q.no 38. Which term belong in intersection of the diagram

A : NP

B:P

C : NP Hard

D : NP Complete

Q.no 39. Which of the following pairs have different expressive power?

A : DFA AND NDFA

B : DPDA AND NPDA

C : Deterministic single tape turing machine and Non-Deterministic single tape turing machine

D : single tape turing machine and multiple 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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

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

D : P3 is decidable if P3 is reducible to P2’s complement

Q.no 45. Consider the grammar given in following figure, which regular expression it represents?

A:

B:

C:

D:

Q.no 46. CFG for balanced parenthesis

A:

B:

C:

D:

Q.no 47. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

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

B : L1 intersection L2 is context free

C : Complement of L2 is recursive

D : Complement of L1 is context free but not regular

Q.no 49. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,

Which of the following statements is true ?

A : L is recursive

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

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

Q.no 51. What is the output of below given regular expression?

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

C : Context free but not regular

D : Recursively enumerable but not context free

Q.no 53. Which of the following are decidable?


I. Whether the intersection of two regular languages is infinite
II. Whether a given context-free language is regular
III. Whether two push-down automata accept the same language
IV. Whether a given grammar is context-free

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

figure. Choose its correct answer from given options.

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:

Q.no 55. The language L defined in following figure is ______.

A : Not recursive

B : is recursive and deterministic CFL.

C : Regular language

D : is not a deterministic CFL but a CFL

Q.no 56. Which of the following problems are decidable?

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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

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.

Which of the following statements is true about M ?

A : M does not halt on any string in (0 + 1)+

B : M does not halt on any string in (00 + 1)*

C : M halts on all string ending in a 0

D : M halts on all string ending in a 1

Q.no 59. A PDA machine configuration (p, w, y) can be correctly represented as:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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

Answer for Question No 1. is a

Answer for Question No 2. is d

Answer for Question No 3. is b

Answer for Question No 4. is c

Answer for Question No 5. is d

Answer for Question No 6. is c

Answer for Question No 7. is a

Answer for Question No 8. is d

Answer for Question No 9. is a

Answer for Question No 10. is d

Answer for Question No 11. is a

Answer for Question No 12. is d

Answer for Question No 13. is c

Answer for Question No 14. is c

Answer for Question No 15. is b

Answer for Question No 16. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is a

Answer for Question No 18. is a

Answer for Question No 19. is d

Answer for Question No 20. is c

Answer for Question No 21. is b

Answer for Question No 22. is c

Answer for Question No 23. is d

Answer for Question No 24. is d

Answer for Question No 25. is b

Answer for Question No 26. is d

Answer for Question No 27. is a

Answer for Question No 28. is b

Answer for Question No 29. is d

Answer for Question No 30. is b

Answer for Question No 31. is b

Answer for Question No 32. is b

Answer for Question No 33. is c


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is a

Answer for Question No 35. is d

Answer for Question No 36. is c

Answer for Question No 37. is d

Answer for Question No 38. is d

Answer for Question No 39. is b

Answer for Question No 40. is b

Answer for Question No 41. is b

Answer for Question No 42. is b

Answer for Question No 43. is a

Answer for Question No 44. is c

Answer for Question No 45. is b

Answer for Question No 46. is a

Answer for Question No 47. is b

Answer for Question No 48. is d

Answer for Question No 49. is a

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is b

Answer for Question No 52. is c

Answer for Question No 53. is b

Answer for Question No 54. is a

Answer for Question No 55. is b

Answer for Question No 56. is d

Answer for Question No 57. is b

Answer for Question No 58. is a

Answer for Question No 59. is a

Answer for Question No 60. is b

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.

2) Attempt any 50 questions out of 60.

3) Use of calculator is allowed.

4) Each question carries 1 Mark.

5) Specially abled students are allowed 20 minutes extra for examination.

6) Do not use pencils to darken answer.

7) Use only black/blue ball point pen to darken the appropriate circle.

8) No change will be allowed once the answer is marked on OMR Sheet.

9) Rough work shall not be done on OMR sheet or on question paper.

10) Darken ONLY ONE CIRCLE for each answer.

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

Q.no 2. __________ is the graphical representation of a grammar.

A : Binary tree

B : Red black tree

C : Parse tree

D : Binary search tree

Q.no 3. Which of the following is not a regular expression?

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

Q.no 5. Transition function of Turing Machine is

A:

B:

C:

D:

Q.no 6. A turing machine with several tapes in known as:

A : Multi-tape turing machine

B : Poly tape turing maching

C : Universal turing machine

D : Complete turing machine

Q.no 7. Which of the following statement is not true?

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

C : In derivation of string any nonterminal is selected to obtain next step of derivation

D : In derivation tree root node is always labelled by starting symbol

Q.no 8. The language accepted by a turing machine is called ____________

A : Recursive Ennumerable

B : Recursive

C : Both (a) and (b)

D : PDA

Q.no 9. 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 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

described in following figure.

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

C : i is less than or equal to 0

D : i is greater than or equal to 0

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

Q.no 16. A formal language is recursive if :

A : A total turing machine exists

B : A turing machine that halts for every input

C : Turing machine rejects if the input does not belong to the language

D : All of the mentioned

Q.no 17. A PDA chooses the next move based on

A : Current state

B : Next input symbol

C : on stack contents

D : uses all current state ,next input symbol and top of the stack

Q.no 18. The value of n if turing machine is defined using n-tuples:

A:6

B:7

C:8

D:5

Q.no 19. A turing machine operates over:

A : Finite memory tape

B : Infinite memory tape

C : Depends on the algorithm

D : Depends on the input

Q.no 20. Regular expression x or y denotes the set

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

B : goes into loop forever

C : accepted

D : goes into loop and hence rejected

Q.no 22. Hamilton Circuit problem is a special case of ____________

A : Travelling Salesman Problem

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?

A : Push Down Automata

B : Non deterministic Finite Automata

C : Turing machines

D : Deterministic Finite Automata

Q.no 25. Consider a CFG given below.Corrsponding CFL is consists of ____________.

A : All length Palindromes

B : Odd length Palindromes

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 : Even length Palindromes

D : prime number length palindromes

Q.no 26. The travelling salesman problem can be solved using _________

A : A spanning tree

B : A minimum spanning tree

C : Bellman Ford algorithm

D : DFS traversal

Q.no 27. What is the result of following union operation.

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.

A : Statement 1 is true and Statement 2 is true

B : Statement 1 is true and Statement 2 is false

C : Statement 1 can be true and Statement 2 is true

D : Statement 1 is false and Statement 2 is also false

Q.no 29. PDA is more powerful than ____ but less powerful than ________.

A : DFA and NFA

B : Turing machine and DFA

C : DFA and turing machine

D : Mealy machine and DFA

Q.no 30. Complete the statement given in following figure to make it true with reference to CFG.

A : Left Recursive Grammar


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

B : Non Recursive Grammar

C : Right Recursive Grammar

D : Right Linear Grammar

Q.no 31. In Mealy machine the output is depends on

A : Only on current state

B : on both current state and current input

C : Only on current input

D : on all current state, current input and next state

Q.no 32. The construction time for DFA from an equivalent NFA (m number of node)is:

A:

B:

C:

D:

Q.no 33. Languge described in following figure is _______________

A : Regular language

B : Non Regular language

C : Both regular and non regular

D : neighter a regular nor a nonregular language

Q.no 34. Which among the following is not true for 2-way infinte TM?

A : Tape in both directions

B : Leftmost square not distinguished

C : Any computation that can be performed by 2way infinite tape can also be performed by standard
TM.

D : Tape is only in one directions

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?

A : Writes the symbol

B : Moves the tape one cell left/right

C : Proceeds with next instruction or halts

D : Push the input in stack

Q.no 36. Which of the following problems is solvable ?

A : Writing a universal Turing machine

B : Determining of an arbitrary turing machine is an universal turing machine

C : Determining of a universal turing machine can be written for fewer than k instructions for some k

D : Determining of a universal turing machine and some input will halt

Q.no 37. Which of the following are not regular ?

A : String of zeros whose length is a perfect square

B : Set of all palindromes made up of zeros and ones

C : Strings of zeros, whose length is a prime number

D : string of even number of zeros

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:

D : None of the mentioned

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

A : a, b, c all are true

B : Only a and b are true

C : Only b and c are true

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

B : L1 intersection 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

D : Complement of L1 is context free but not regular

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

D : P3 is decidable if P3 is reducible to P2’s complement

Q.no 45. A PDA machine configuration (p, w, y) can be correctly represented as:

A : current state, unprocessed input, stack content

B : unprocessed input, stack content, current state

C : current state, stack content, unprocessed input

D : current state, stack content, processed input

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

________.

A : Decidable and Recursively Enumerable

B : Undecidable but Recursively Enumerable

C : Undecidable and Not Recursively Enumerable

D : Decidable but not Recursively Enumerable

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

Q.no 49. Which of the following is/are Undecidable?

A : 3 only

B : 3 and 4 only

C : 1, 2 and 3 only

D : 2 and 3 only

Q.no 50. What is the output of below given regular expression?

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 51. Which of the following problems is undecidable?

A : Membership problem for CFGs

B : Ambiguity problem for CFGs.

C : Finiteness problem for FSAs.

D : Equivalence problem for FSAs.

Q.no 52. Nobody knows yet if P is equal to NP. Consider the language L defined as in image,

Which of the following statements is true ?

A : L is recursive

B : L is recursively enumerable but not recursive

C : L is not recursively enumerable

D : Whether L is recursive or not will be known after we find out if P is equal to NP

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

C : Context free but not regular

D : Recursively enumerable but not context free

Q.no 57. Which of the following problems are decidable?

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

B : X is undecidable but partially decidable

C : X is undecidable and not even partially decidable

D : X is not a decision problem

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

Answer for Question No 1. is c

Answer for Question No 2. is c

Answer for Question No 3. is b

Answer for Question No 4. is d

Answer for Question No 5. is a

Answer for Question No 6. is a

Answer for Question No 7. is c

Answer for Question No 8. is c

Answer for Question No 9. is b

Answer for Question No 10. is c

Answer for Question No 11. is d

Answer for Question No 12. is a

Answer for Question No 13. is c

Answer for Question No 14. is c

Answer for Question No 15. is a

Answer for Question No 16. is d

https://sppu.wheebox.com/WAC-3/openanswers.obj 1/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 17. is d

Answer for Question No 18. is b

Answer for Question No 19. is b

Answer for Question No 20. is a

Answer for Question No 21. is a

Answer for Question No 22. is a

Answer for Question No 23. is a

Answer for Question No 24. is c

Answer for Question No 25. is d

Answer for Question No 26. is b

Answer for Question No 27. is a

Answer for Question No 28. is a

Answer for Question No 29. is c

Answer for Question No 30. is a

Answer for Question No 31. is b

Answer for Question No 32. is b

Answer for Question No 33. is b


https://sppu.wheebox.com/WAC-3/openanswers.obj 2/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 34. is d

Answer for Question No 35. is d

Answer for Question No 36. is a

Answer for Question No 37. is d

Answer for Question No 38. is b

Answer for Question No 39. is a

Answer for Question No 40. is d

Answer for Question No 41. is a

Answer for Question No 42. is d

Answer for Question No 43. is b

Answer for Question No 44. is c

Answer for Question No 45. is a

Answer for Question No 46. is b

Answer for Question No 47. is b

Answer for Question No 48. is b

Answer for Question No 49. is d

https://sppu.wheebox.com/WAC-3/openanswers.obj 3/4
12/26/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj

Answer for Question No 50. is b

Answer for Question No 51. is b

Answer for Question No 52. is a

Answer for Question No 53. is a

Answer for Question No 54. is a

Answer for Question No 55. is a

Answer for Question No 56. is c

Answer for Question No 57. is d

Answer for Question No 58. is b

Answer for Question No 59. is c

Answer for Question No 60. is b

https://sppu.wheebox.com/WAC-3/openanswers.obj 4/4

You might also like