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 2023 Questions with Answer
Ques 1 Aptitude
We reached the station late, and _______ missed the train.
Ques 2 Aptitude
Kind : ______ :: often : frequently
Ques 3 Aptitude
f(x) and g(y) are function of x and y, respectively and f(x) = g(y) for all real values of x and y. Which one of the following options is necessary true?
Ques 4 Aptitude
A series of natural numbers πΉ1, πΉ2, πΉ3, πΉ4, πΉ5, πΉ6, πΉ7, β¦ obeys πΉπ+1 = πΉπ + πΉπβ1
for all integers π β₯ 2 .
If πΉ6 = 37, and πΉ7 = 60, then what is πΉ1 ?
Ques 5 Aptitude
Looking at the surface of a smooth 3-dimensional object from the outside, which one of the following options is TRUE?
Ques 6 Aptitude
The country of Zombieland is in distress since more than 75% of its working population is suffering from serious health issues. Studies conducted by competent health experts concluded that a complete lack of physical exercise among its working population was one of the leading causes of their health issues. As one of the measures to address the problem, the Government of Zombieland has decided to provide monetary incentives to those who ride bicycles to work. Based only on the information provided above, which one of the following statements can be logically inferred with certainty?
Ques 7 Automata
Which of the following statements is/are CORRECT?
a) is correct
The class of recursively enumerable (RE) languages is closed under intersection.
If L1
and L2
are RE languages, then L1 β© L2
is also RE.
This can be done by constructing a Turing machine that runs the machines for both L1
and L2
in parallel and accepts if both accept.
For example:
Let L1 = { w | w contains at least one 'a' }
and L2 = { w | w contains at least one 'b' }
.
Their intersection is L1 β© L2 = { w | w contains both 'a' and 'b' }
, which is RE.
b) is incorrect
The class of recursive languages is not always closed under intersection.
If L1
and L2
are recursive, their intersection L1 β© L2
might not necessarily be recursive because deciding membership in L1 β© L2
could require undecidable steps.
For example:
Let L1 = { w | w halts on input 0 }
and L2 = { w | w halts on input 1 }
.
Their intersection is L1 β© L2 = { w | w halts on both input 0 and input 1 }
, which is not recursive because the halting problem is undecidable.
c) is incorrect
The class of context-free languages (CFLs) is not closed under intersection.
There exist CFLs L1
and L2
such that their intersection L1 β© L2
is not a CFL.
For example:
Let L1 = { an bn cm | n, m β₯ 0 }
and L2 = { am bn cn | n, m β₯ 0 }
.
Their intersection is L1 β© L2 = { an bn cn | n β₯ 0 }
, which is not a CFL.
d) is correct
The class of regular languages is closed under intersection.
If L1
and L2
are regular, then L1 β© L2
is also regular.
This can be achieved using the product construction of finite automata.
For example:
Let L1 = { w | w starts with 'a' }
and L2 = { w | w ends with 'b' }
.
Their intersection is L1 β© L2 = { w | w starts with 'a' and ends with 'b' }
, which is regular.
So, a, c, d is correct option
Ques 8 Automata
Consider the following language L = {w ∈ {0,1}*| w does not contains three or more consecutive 1's}. The number of states in minimal DFA that accepts L is
4 is the correct answer.
Ques 9 Automata
Consider the following grammar:
S β> aSb|X
X β>aX|Xb|a|b
What can be said about the language generated by grammar?
Ques 10 Computer Science
Consider the following statements regarding the front-end and back-end of a compiler.
S1: The front-end includes phases that are independent of the target hardware.
S2: The back-end includes phases that are specific to the target hardware.
S3: The back-end includes phases that are specific to the programming language used in the source code.
Identify the CORRECT option.
Ques 11 Computer Science
Which one of the following sequences when stored in an array at locations A[1],...,A[10] forms a max-heap?
Ques 12 Computer Science
Let SLLdel be a function that deletes a node in a singly-linked list given a pointer to the node and a pointer to the head of the list. Similarly, let DLLdel be another function that deletes a node in a doubly-linked list given a pointer to the node and a pointer to the head of the list.
Let n denote the number of nodes in each of the linked lists. Which one of the following choices is TRUE about the worst-case time complexity of SLLdel and DLLdel?
Ques 13 Computer Science
Consider the Deterministic Finite-state Automaton (DFA) A shown below. The DFA runs on the alphabet {0, 1}, and has the set of states {s,p,q,r}, with s being the start state and p being the only final state.


Total Unique Visitors