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 2018 Questions with Answer
Ques 1 Aptitude
In appreciative of social improvement completed in a town, a wealthy philanthropist decided to give gift of Rs. 750 to each male senior citizen and Rs. 1000 for female senior citizens. There are total 300 senior citizens and th 8/9th of total men and 2/3rd of total women claimed the gift. What is amount of money philanthropist paid?
Ques 2 Aptitude
If pqr ≠ 0 and p-x = 1/q, q-y = 1/r , r-z = 1/p, what is the value of the product xyz ?
Ques 3 Aptitude
A six sided unbiased die with four green faces and two red faces is rolled seven times. Which of the following combinations is the most likely outcome of the experiment?
Ques 4 Aptitude
In a party, 60% of the invited guests are male and 40% are female. If 80% of the invited guests attended the party and if all the invited female guests attended, what would be the ratio of males to females among the attendees in the party?
Ques 5 Aptitude
The area of a square is ‘d’. What is the area of the circle which has the diagonal of the square as its diameter?
Ques 6 Aptitude
A __________ investigation can sometimes yield new facts, but typically organized once are more successful.
Ques 7 Aptitude
"From where are they bringing their books? _________ bringing _________ books from _________." The words that best fill the blanks in the above sentence are
Ques 8 Aptitude
What would be the smallest natural number which when divided either by 20 or by 42 or by 76 leaves a remainder ‘7’ in each case is_
Ques 9 Aptitude
What is the missing number in the following sequence? 2, 12, 60, 240, 720, 1440, ___,0
Ques 10 Automata
Consider the following languages:
II. {ambncpdq ∣ m = n and p = q, where m, n, p, q ≥ 0}
III. {ambncpdq ∣ m = n = p and p ≠ q, where m, n, p, q ≥ 0}
IV. {ambncpdq ∣ mn = p + q, where m, n, p, q ≥ 0}
Which of the above languages are context-free?
Ques 11 C Programming
Consider the following program written in pseudo-code. Assume that x and y are integers.
if (y !=1 ) {
if (x !=1) {
print("*");
Count (x/2, y);
}
else {
y=y-1;
Count (1024, y);
}
}
}
The number of times that the print statement is executed by the call Count(1024, 1024) is _______ .
a is the correct answer.
Ques 12 C Programming
Consider the following C program:
int counter = 0;
int calc(int a, int b) {
int c;
counter++;
if (b == 3)
return (a * a * a);
else {
c = calc(a, b / 3);
return (c * c * c);
}
}
int main() {
calc(4, 81);
printf("%d", counter);
}
The output of this program is ________ .
a is the correct answer.
Ques 13 C Programming
Consider the following C code. Assume that unsigned long int type length is 64 bits.
unsigned long int i, j = 0, sum = 0;
for( i = n; i > 1; i = i/2) j++;
for( ; j > 1; j = j/2) sum++;
return sum;
}
The value returned when we call fun with the input 240 is

Total Unique Visitors