CS/IT Gate Yearwise
CS/IT Gate 2025 (Set 2)
CS/IT Gate 2024 (Set 1)
CS/IT Gate 2024 (Set 2)
CS/IT Gate 2023
CS/IT Gate 2022
CS/IT Gate 2021 (Set 1)
CS/IT Gate 2021 (Set 2)
CS/IT Gate 2020
CS/IT Gate 2019
CS/IT Gate 2018
CS/IT Gate 2017 (Set 1)
CS/IT Gate 2017 (Set 2)
CS/IT Gate 2016 (Set 1)
CS/IT Gate 2016 (Set 2)
CS/IT Gate 2015 (Set 1)
CS/IT Gate 2015 (Set 2)
CS/IT Gate 2015 (Set 3)
CS/IT Gate 2014 (Set 1)
CS/IT Gate 2014 (Set 2)
CS/IT Gate 2014 (Set 3)
CS and IT GATE 2021 Set-1 Questions with Answer
Ques 40 Theory of Computation
Consider the following recurrence relation.
T(n) = T(n/2) + T(2n/5) + 7n if n > 0
T(n) = 1 if n = 0
Which one of the following options is correct?
Ques 41 Theory of Computation
Consider the following context-free grammar where the set of terminals is {a, b, c, d, f}.
S -> daT | Rf
T -> aS | baT | ε
R -> caTR | ε
The following is a partially-filled LL(1) parsing table.

Ques 42 Theory of Computation
Consider the following language.
L = {w ∈ {0, 1}* | w ends with the substring 011}
Which one of the following deterministic finite automata accepts L?
Ques 43 Theory of Computation
For a Turing machine M,
L1 = {
L2 = {
Which one of the following options is correct?
Ques 44 Theory of Computation
An articulation point in a connected graph is a vertex such that removing the vertex and its incident edges disconnects the graph into two or more connected components. Let T be a DFS tree obtained by doing DFS in a connected undirected graph G. Which of the following options is/are correct?
Ques 45 Theory of Computation
A relation R is said to be circular if aRb and bRc together imply cRa. Which of the following options is/are correct?
Ques 46 Theory of Computation
Define Rn to be the maximum amount earned by cutting a rod of length n meters into one or more pieces of integer length and selling them. For i > 0, let p[i] denote the selling price of a rod whose length is i meters. Consider the array of prices:
p = 1, p = 5, p = 8, p = 9, p = 10, p = 17, p = 18
Which of the following statements is/are correct about R7?
Ques 47 Theory of Computation
Consider the following statements.
S1: Every SLR(1) grammar is unambiguous but there are certain unambiguous grammars that are not SLR(1).
S2: For any context-free grammar, there is a parser that takes at most O(n3) time to parse a string of length n.
Which one of the following options is correct?
Ques 48 Theory of Computation
A relation R is said to be circular if aRb and bRc together imply cRa.
Which of the following options is/are correct?
Ques 49 Theory of Computation
Consider the following statements.
S1: For every infinite regular language L, there exists a subset L′ of L such that L′ is infinite and context-free.
S2: For every context-free language L, there exists a subset L′ of L such that L′ is infinite and regular.
Which one of the following options is correct?
Ques 50 Theory of Computation
Consider the following statements.
S1: If L1 is a context-free language and L2 is a regular language, then L1 − L2 is a context-free language.
S2: If L1 is a context-free language and L2 is a regular language, then L1 ∩ L2 is a regular language.
Which one of the following options is correct?
Ques 51 Theory of Computation
An articulation point in a connected graph is a vertex such that removing the vertex and its incident edges disconnects the graph into two or more connected components.
Let T be a DFS tree obtained by doing DFS in a connected undirected graph G.
Which of the following options is/are correct?
Ques 52 Theory of Computation
Consider the following statements.
S1: Every SLR(1) grammar is unambiguous but there are certain unambiguous grammars that are not SLR(1).
S2: For any context-free grammar, there is a parser that takes at most O(n3) time to parse a string of length n.
Which one of the following options is correct?

Total Unique Visitors