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 PYQ2021Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionNAT · 2 marks
Consider the following matrix.(0111101111011110)\begin{pmatrix} 0 & 1 & 1 & 1\\ 1& 0& 1 & 1\\ 1& 1 & 0 & 1 \\1 & 1 & 1 & 0 \end{pmatrix}The largest eigenvalue of the above matrix is __________.
Official PYQ2021Computer Organization and ArchitectureInstruction PipeliningNAT · 2 marks
A five-stage pipeline has stage delays of 150,120,150,160150, 120, 150, 160 and 140140 nanoseconds. The registers that are used between the pipeline stages have a delay of 55 nanoseconds each. The total time to execute 100100 independent instructions on this pipeline, assuming there are no pipeline stalls, is _______ nanoseconds.
Official PYQ2021Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
Consider the following instruction sequence where registers R1,R2\text{R1}, \text{R2} and R3\text{R3} are general purpose and MEMORY[X]\text{MEMORY[X]} denotes the content at the memory location X.\text{X}. …
Official PYQ2021Engineering MathematicsConditional Probability and Bayes TheoremNAT · 2 marks
A sender (S)(\textsf{S}) transmits a signal, which can be one of the two kinds: HH and LL with probabilities 0.10.1 and 0.90.9 respectively, to a receiver (R)(\textsf{R}). In the graph below, the weight of edge (u,v)(u,v) is the probability of receiving vv when uu is transmitted, where u,v∈{H,L}u,v \in \{H,L\}. For example, the probability that the …
Official PYQ2021General AptitudeMCQ · 1 mark
Gauri said that she can play the keyboard __________ her sister.
Official PYQ2021General AptitudeMCQ · 1 mark
A transparent square sheet shown above is folded along the dotted line. The folded sheet will look like ___________.
Official PYQ2021General AptitudeMCQ · 1 mark
If θ\theta is the angle, in degrees, between the longest diagonal of the cube and any one of the edges of the cube, then, cos⁡θ=\cos \theta =
Official PYQ2021General AptitudeMCQ · 1 mark
Pen : Write :: Knife :\text{Pen : Write :: Knife :} _______ Which one of the following options maintains a similar logical relation in the above?
Official PYQ2021General AptitudeMCQ · 2 marks
Listening to music during exercise improves performance and reduces discomfort. Scientists researched whether listening to music while studying can help students learn better and the results were inconclusive. Students who needed external stimulation for studying fared worse while students who did not need any external stimulation benefited from music. Which …
Official PYQ2021General AptitudeMCQ · 1 mark
​​​​​​If (x–12)2–(x−32)2=x+2\left( x – \dfrac{1}{2} \right)^2 – \left( x- \dfrac{3}{2} \right) ^2 = x+2, then the value of xx is:
Official PYQ2021General AptitudeMCQ · 2 marks
A jigsaw puzzle has 22 pieces. One of the pieces is shown above. Which one of the given options for the missing piece when assembled will form a rectangle? The piece can be moved, rotated or flipped to assemble with the above piece.
Official PYQ2021General AptitudeMCQ · 2 marks
The number of students in three classes is in the ratio 3:13:63:13:6. If 1818 students are added to each class, the ratio changes to 15:35:2115:35:21. The total number of students in all the three classes in the beginning was:
Official PYQ2021General AptitudeMCQ · 2 marks
The number of units of a product sold in three different years and the respective net profits are presented in the figure above. The cost/unit in Year 33 was ₹  1\;1, which was half the cost/unit in Year 22. The cost/unit in Year 33 was one-third of the cost/unit in Year 11. Taxes were paid on the selling price at 10%10 \%, 13%13 \%, and …
Official PYQ2021General AptitudeMCQ · 2 marks
Six students P, Q, R, S, T and U\text{P, Q, R, S, T and U}, with distinct heights, compare their heights and make the following observations. Observation I\text{Observation I}: S\text{S} is taller than R\text{R}. Observation II\text{Observation II}: Q\text{Q} is the shortest of all. Observation III\text{Observation III}: U\text{U} is taller than only one student. Observation IV\text{Observation IV}: …
Official PYQ2021AlgorithmsMinimum Spanning TreesMCQ · 1 mark
Let GG be a connected undirected weighted graph. Consider the following two statements. S1S_1: There exists a minimum weight edge in GG which is present in every minimum spanning tree of GG. S2S_2: If every edge in GG has distinct weight, then GG has a unique minimum spanning tree. Which one of the following options is correct?
Official PYQ2021Programming and Data StructuresBinary HeapsMCQ · 1 mark
​​​​​Let HH be a binary min-heap consisting of nn elements implemented as an array. What is the worst case time complexity of an optimal algorithm to find the maximum element in HH?
Official PYQ2021Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
The format of the single-precision floating point representation of a real number as per the IEEE 754\text{IEEE 754} standard is as follows: signexponentmantissa\begin{array}{|c|c|c|} \hline \text{sign} & \text{exponent} & \text{mantissa} \\ \hline \end{array} Which one of the following choices is correct with respect to the smallest normalized positive number …
Official PYQ2021Compiler DesignLexical AnalysisMCQ · 1 mark
Consider the following ANSI C\text{ANSI C} program: int main () { Integer x; return 0; } Which one of the following phases in a seven-phase CC compiler will throw an error?
Official PYQ2021DatabasesIntegrity ConstraintsMCQ · 1 mark
Consider the following statements S1S1 and S2S2 about the relational data model: S1S1: A relation scheme can have at most one foreign key. S2S2: A foreign key in a relation scheme RR cannot be used to refer to tuples of R.R. Which one of the following choices is correct?
Official PYQ2021Digital LogicCombinational CircuitsMCQ · 1 mark
Which one of the following circuits implements the Boolean function given below? f(x,y,z)=m0+m1+m3+m4+m5+m6f(x,y,z) = m_0+m_1+m_3+m_4+m_5+m_6, where mim_i is the ithi^{\text{th}} minterm.