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 two regular expressions over the alphabet : The total number of strings of length less than or equal to , which are neither in nor in , is ________.
Which one of the following regular expressions is equivalent to the language accepted by the given below?
Let be the -state with -transitions shown in the diagram below. Which one of the following regular expressions represents the language accepted by ?
Let be the language represented by the regular expression and , where denotes the length of string . The number of strings in which are also in is _________.
Consider the Deterministic Finite-state Automaton () shown below. The runs on the alphabet , and has the set of states , with being the start state and being the only final state. Which one of the following regular expressions correctly describes the language accepted by …
Consider the following definition of a lexical token for an identifier in a programming language, using extended regular expressions: …
Which of the following statements is/are
Consider the context-free grammar below where and are non-terminals, and and are terminal symbols. The starting non-terminal is . Which one of the following statements is
Consider the pushdown automaton below, which runs on the input alphabet , has stack alphabet , and has three states , with being the start state. A transition from state to state , labelled , where is an input symbol or is a stack symbol, …
Consider the language over the alphabet , given below: The minimum number of states in a Deterministic Finite-State Automaton for is ____________.
Which one of the following regular expressions correctly represents the language of the finite automaton given below?
Which of the following statements is/are
Consider the following languages: Which of the following statements is/are
Which of the following is/are undecidable?
Consider the following languages: Note that is the reversal of the string Which of the following is/are
Suppose that is a regular language and is a context-free language. Which one of the following languages is necessarily context-free?
Let denote an encoding of an automaton . Suppose that . Which of the following languages is/are recursive?
Consider the following language: Which one of the following deterministic finite automata accepts
For a Turing machine , denotes an encoding of . Consider the following two languages. Which one of the …
In a pushdown automaton , a transition of the form, where , , and , represents Consider the following pushdown automaton over the input alphabet and stack alphabet …
