GATE CS Theory of Computation questions
Practise Theory of Computation questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
Consider the following languages. , and , where …
Consider the following two statements: If all states of an NFA are accepting states then the language accepted by the NFA is . There exists a regular language such that for all languages , is regular. Which one of the following is CORRECT?
Consider the following types of languages: : Regular, : Context-free, : Recursive, : Recursively enumerable. Which of the following is/are TRUE ? is recursively enumerable. is recursive. is context-free. …
The number of states in the minimum sized DFA that accepts the language defined by the regular expression. is ________.
Language is defined by the grammar: Language is defined by the grammar: Consider the following statements: P: is regular Q: is regular Which one of the following is TRUE?
Consider the DFAs and given above. The number of states in a minimal DFA that accept the language is_____________.
Consider the NPDA , where (as per usual convention) is the set of states, is the input alphabet, is the stack alphabet, is …
For any two languages and such that is context-free and is recursively enumerable but not recursive, which of the following is/are necessarily true? ( Complement of ) is recursive ( Complement of ) is recursive is context-free ∪ …
The number of states in the minimal deterministic finite automaton corresponding to the regular expression is _____.
Which of the following is/are regular languages?
Consider the alphabet , the null/empty string and the set of strings generated by the corresponding non-terminals of a regular grammar. are related as follows. Which one of the following …
Consider the following statements. The complement of every Turing decidable language is Turing decidable There exists some language which is in NP but is not Turing decidable If L is a language in NP, L is Turing decidable Which of the above statements is/are true?
Consider two decision problems such that reduces in polynomial time to 3-SAT and 3-SAT reduces in polynomial time to . Then which one of the following is consistent with the above statement?
Language is polynomial time reducible to language . Language is polynomial time reducible to language , which in turn polynomial time reducible to language . Which of the following is/are true? …
Which of the following languages are context-free?
Let be the language represented by the regular expression where . What is the minimum number of states in a DFA that recognizes (complement of )?
Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correct Venn diagram of the complexity classes P, NP and NP Complete (NPC)?
Which of the regular expressions given below represent the following DFA?
Let be a language and be its complement. Which one of the following is NOT a viable possibility?
Consider the finite automaton in the following figure: What is the set of reachable states for the input string ?
