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
Let be an arbitrary regular language accepted by a minimal with states. Which one of the following languages must necessarily be accepted by a minimal with states?
Let be a regular language and be a context-free language. Which of the following languages is/are context-free?
Consider the following deterministic finite automaton The number of strings of length accepted by the above automaton is ___________
Suppose we want to design a synchronous circuit that processes a string of ’s and ’s. Given a string, it produces another string by replacing the first in any subsequence of consecutive ’s by a . Consider the following example. …
Consider the following two statements about regular languages: : Every infinite regular language contains an undecidable language as a subset. : Every finite language is regular. Which one of the following choices is correct?
For a string , we define to be the reverse of . For example, if then . Which of the following languages is/are context-free?
Which of the following regular expressions represent(s) the set of all binary numbers that are divisible by three? Assume that the string is divisible by three.
Which one of the following regular expressions represents the set of all binary strings with an odd number of s?
Consider the following statements. If is regular, then both and must be regular. The class of regular languages is closed under infinite union. Which of the above statements is/are TRUE?
Consider the language and the following statements. is deterministic context-free. is context-free but not deterministic context-free. is not for any . Which of the above statements is/are TRUE?
Consider the following languages. Which one of the following is TRUE?
Consider the following language. number of ’s in divisible by but not divisible by The minimum number of states in DFA that accepts is _________
If is a regular language over , which one of the following languages is NOT regular?
For , let us consider the regular language . Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for ?
Which one of the following languages over is NOT context-free?
Consider the following sets: S1: Set of all recursively enumerable languages over the alphabet S2: Set of all syntactically valid C programs S3: Set of all languages over the alphabet S4: Set of all non-regular languages over the alphabet Which of the above sets are uncountable?
Let be the set of all bijections from to , where denotes the identity function, i.e. . Let denote composition on functions. For a string , let . Consider the language …
Given a language , define as follows:The order of a language is defined as the smallest such that . Consider the language over alphabet accepted by the following automaton. The order of is ________.
Consider the following problems. denotes the language generated by a grammar . L(M) denotes the language accepted by a machine . For an unrestricted grammar and a string , whether Given a Turing machine , whether is regular Given two grammar and , whether Given an …
Consider the following languages: Which of the …
