Home > General Studies (Hindi) > Quizzes > Theory of Computation Practice Test
Theory of Computation Practice Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 71% Most missed: “If PCP is decidable then MPCP is”
In theoretical computer science and mathematics, the theory of computation is the branch that deals with what problems can be solved on a model of computation, using an algorithm, how efficiently they can be solved or to what degree (e.g., approximate solutions versus precise ones). The field is divided into three major branches: automata theory and formal languages, computability theory, and computational complexity theory, which are linked by the question: "What are the fundamental capabilities and limitations of computers?" (Source: Wikipedia)   The 'theory of computation' is important... Show more
Theory of Computation Practice Test
Time left 00:00
25 Questions

1. The set that can be recognized by a deterministic finite state automaton is
2. Consider a language L for which there exists a Turing machine ™, T, that accepts every word in L and either rejects or loops for every word that is not in L. The language L is
3. 3-SAT and 2-SAT problems are
4. Let L be any infinite regular language, defined over an alphabet Σ then there exist three strings x, y and z belonging to Σ such that all the strings of the form XY^ n Z for n=1,2,3, … are the words in L called
5. Match all items in Group 1 with correct options from those given in Group 2. List I List II**spaceP. Regular Expression 1. Syntax analysis**spaceQ. Push down automata 2. Code Generation**spaceR. Dataflow analysis 3. Lexical analysis**spaceS. Register allocation 4. Code optimization
6. Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.
7. Consider the following Finite State Automaton The language accepted by this automaton is given by the regular expression
8. Consider the following statements
I. Recursive languages are closed under complementation
II. Recursively enumerable languages are closed under union
III. Recursively enumerable languages are closed under complementation
Which of the above statement are TRUE?
9. Choose the correct statement
10. Recursively enumerable languages are not closed under:
11. Let L={w (0 + 1)* w has even number of 1s}, i.e. L is the set of all bit strings with even number of 1s. Which one of the regular expression below represents L?
12. Which one of the following is the strongest correct statement about a finite language Lover a finite alphabet Σ?
13. Which of the following instances of the post correspondence problem has a viable sequence (a solution)?
14. PCP is:
15. Grammar that produce more than one Parse tree for same sentence is:
16. Context free grammar is not closed under
17. If PCP is decidable then MPCP is
18. Which of the following assertions about Turing Machines is true? Blank symbol(s) may occur in the input. At any stage of a computation, there are only finitely many non-blank Symbols on the tape.
19. Left hand side of a production in CFG consists of:
20. A pushdown automata behaves like a Turing machine, when it has number of auxiliary/ memory.
21. Which of the following problem is undecidable?
22. A universal Turing machine is a
23. Which one of the following is true regarding FOTRAN?
24. If a language is denoted by a regular expression L = ( x )* (x y x ), then which of the following is not a legal string within L ?
25. Let FHAM be the problem of finding a Hamiltonian cycle in a graph G and DHAM be the problem of determining if a Hamiltonial cycle exists in a graph. Which one of the following is TRUE?