Skip to content

GATE CS question library

Practise GATE CS Computer Science previous year questions free. Browse by subject, syllabus topic, year and question type, with answers and available solutions.

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
Official PYQ2024Theory of ComputationRegular Expressions and Finite AutomataNAT · 2 marks
Consider the following two regular expressions over the alphabet {0,1}\{0,1\} : r=0∗+1∗r= 0^{*}+1^{*} s=01∗+10∗s = 01^{*} + 10^{*} The total number of strings of length less than or equal to 55, which are neither in rr nor in ss, is ________.
Official PYQ2024Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider a memory management system that uses a page size of 2 KB2 \mathrm{~KB}. Assume that both the physical and virtual addresses start from 00. Assume that the pages 0,1,20,1,2, and 33 are stored in the page frames 1,3,21,3,2, and 00, respectively. The physical address (in decimal format) corresponding to the virtual address 25002500 (in decimal …
Official PYQ2024Engineering MathematicsConditional Probability and Bayes TheoremNAT · 2 marks
A bag contains 1010 red balls and 1515 blue balls. Two balls are drawn randomly without replacement. Given that the first ball drawn is red, the probability (rounded off to 33 decimal places) that both balls drawn are red is ___________.
Official PYQ2024Digital LogicCombinational CircuitsNAT · 2 marks
Consider a digital logic circuit consisting of three 22-to-11 multiplexers M1, M2\text{M1, M2}, and M3\text{M3} as shown below. X1\mathrm{X} 1 and X2\mathrm{X} 2 are inputs of M1\mathrm{M} 1. X3\text{X3} and X4\text{X4} are inputs of M2\text{M2}. A, B\text{A, B}, and C\text{C} are select lines of M1, M2\text{M1, M2}, and M3\text{M3}, …
Official PYQ2024Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 2 marks
Consider sending an IP\text{IP} datagram of size 14201420 bytes (including 2020 bytes of IP\text{IP} header) from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an MTU\text{MTU} (Maximum Transmission Unit) size of 542542 bytes, while the second link (router to receiver) has an …
Official PYQ2024General AptitudeMCQ · 1 mark
If ' →\rightarrow ' denotes increasing order of intensity, then the meaning of the words [dry →\rightarrow arid →\rightarrow parched] is analogous to [diet →\rightarrow fast →\rightarrow ________ ]. Which one of the given options is appropriate to fill the blank?
Official PYQ2024General AptitudeMCQ · 1 mark
​​​If two distinct non-zero real variables xx and yy are such that (x+y)(x+y) is proportional to (x−y)(x-y) then the value of xy\frac{x}{y}
Official PYQ2024General AptitudeMCQ · 1 mark
Consider the following sample of numbers: 9,18,11,14,15,17,10,69,11,139,18,11,14,15,17,10,69,11,13 The median of the sample is
Official PYQ2024General AptitudeMCQ · 1 mark
​​​​The number of coins of ₹11, ₹55, and ₹1010 denominations that a person has are in the ratio 5:3:135:3:13. Of the total amount, the percentage of money in ₹55 coins is
Official PYQ2024General AptitudeMCQ · 1 mark
For positive non-zero real variables pp and qq, if log⁡(p2+q2)=log⁡p+log⁡q+2log⁡3,\log \left(p^2+q^2\right)=\log p+\log q+2 \log 3, then, the value of p4+q4p2q2\frac{p^4+q^4}{p^2 q^2} is
Official PYQ2024General AptitudeMCQ · 2 marks
In the given text, the blanks are numbered (i) - (iv)\text{(i) - (iv)}. Select the best match for all the blanks. Steve was advised to keep his head (i) before heading (ii) to bat; for, while he had a head (iii) batting, he could only do so with a cool head iv his shoulders.
Official PYQ2024General AptitudeMCQ · 2 marks
​​A rectangular paper sheet of dimensions 54 cm×4 cm54 \mathrm{~cm} \times 4 \mathrm{~cm} is taken. The two longer edges of the sheet are joined together to create a cylindrical tube. A cube whose surface area is equal to the area of the sheet is also taken. Then, the ratio of the volume of the cylindrical tube to the volume of the cube is
Official PYQ2024General AptitudeMCQ · 2 marks
The pie chart presents the percentage contribution of different macronutrients to a typical 2,000  kcal2,000\; \mathrm{kcal} diet of a person. The typical energy density (kcal/g)(\mathrm{kcal} / \mathrm{g}) of these macronutrients is given in the table. …
Official PYQ2024General AptitudeMCQ · 2 marks
A rectangular paper of 20 cm×8 cm20 \mathrm{~cm} \times 8 \mathrm{~cm} is folded 33 times. Each fold is made along the line of symmetry, which is perpendicular to its long edge. The perimeter of the final folded sheet (in cm\mathrm{cm} ) is
Official PYQ2024General AptitudeMCQ · 2 marks
​​The least number of squares to be added in the figure to make A B\text{A B} a line of symmetry is
Official PYQ2024General AptitudeMCQ · 1 mark
​​Two wizards try to create a spell using all the four elements, water, air, fire, and earth. For this, they decide to mix all these elements in all possible orders. They also decide to work independently. After trying all possible combination of elements, they conclude that the spell does not work. How many attempts does each wizard make before coming to …
Official PYQ2024General AptitudeMCQ · 1 mark
​​​​​If ' →\rightarrow ' denotes increasing order of intensity, then the meaning of the words [walk →\rightarrow jog →\rightarrow sprint] is analogous to [bothered →\rightarrow ________→\rightarrow daunted]. Which one of the given options is appropriate to fill the blank?
Official PYQ2024General AptitudeMCQ · 1 mark
​​​​In an engineering college of 10,00010,000 students, 1,5001,500 like neither their core branches nor other branches. The number of students who like their core branches is 1/4th 1 / 4^{\text{th }} of the number of students who like other branches. The number of students who like both their core and other branches is 500500. The number of students who like …
Official PYQ2024General AptitudeMCQ · 1 mark
For positive non-zero real variables xx and yy, if ln⁡(x+y2)=12[ln⁡(x)+ln⁡(y)]\ln \left(\frac{x+y}{2}\right)=\frac{1}{2}[\ln (x)+\ln (y)] then, the value of xy+yx\frac{x}{y}+\frac{y}{x} is
Official PYQ2024General AptitudeMCQ · 1 mark
​​​​​In the sequence 6,9,14,x,30,416,9,14, x, 30,41, a possible value of xx is