π
GATE CS - Previous Year Questions
Actual GATE CS exam questions from previous years (2020-2025)
142 questionsΓ’β¬Β’15 pagesΓ’β¬Β’~213 min
Use this quiz track to strengthen recall, speed, and exam-style decision making. Attempt one page first, review explanations, and then re-attempt incorrect questions without notes.
A good scoring strategy is to mark uncertain questions, finish known ones quickly, and return with elimination logic. This improves accuracy while keeping momentum under time constraints.
Progress: 0 / 1420%
Page 9 of 15 β’ Questions 81-90 of 142
Q81medium
[GATE CS 2024 Set-1 Q18] Consider the following C program: #include <stdio.h> int main(){ int a = 6; int b = 0; while(a < 10) { a = a / 12 + 1; a += b;} printf(β%dβ, a); return 0;} Which one of the following statements is CORRECT?
Q82medium
[GATE CS 2024 Set-1 Q19] Consider the following C program: #include <stdio.h> void fX(){ void fX(); char a; int main(){ if((a = getchar()) != '\n') fX(); fX(); return 0;} if(a != '\n') putchar(a);} Assume that the input to the program from the command line is 1234 followed by a newline character. Which one of the following statements is CORRECT?
Q83medium
[GATE CS 2024 Set-1 Q20] Let S be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following ER diagrams CORRECTLY represents S?
Q84medium
[GATE CS 2024 Set-1 Q21] In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following cases?
Q85medium
[GATE CS 2024 Set-1 Q22] Which of the following statements about a relation R in first normal form (1NF) is/are TRUE ?
Q86medium
[GATE CS 2024 Set-1 Q23] Let πΏ ,πΏ be two regular languages and πΏ a language which is not regular. 1 2 3 Which of the following statements is/are always TRUE?
Q87medium
[GATE CS 2024 Set-1 Q24] Which of the following statements about threads is/are TRUE?
Q88medium
[GATE CS 2024 Set-1 Q25] Which of the following process state transitions is/are NOT possible?
Q89medium
[GATE CS 2024 Set-1 Q26] Which of the following is/are Bottom-Up Parser(s)?
Q90medium
[GATE CS 2024 Set-1 Q27] Let π΄ and π΅ be two events in a probability space with π(π΄) = 0.3, π(π΅) = 0.5, and π(π΄β©π΅) = 0.1. Which of the following statements is/are TRUE?
......