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 PYQ2016Digital LogicBoolean AlgebraMCQ · 1 mark
Let, x1⊕x2⊕x3⊕x4=0x_{1} ⊕ x_{2} ⊕ x_{3} ⊕ x_{4}= 0 where x1,x2,x3,x4x_{1}, x_{2}, x_{3}, x_{4} are Boolean variables, and ⊕⊕ is the XOR operator. Which one of the following must always be TRUE?
Official PYQ2016General AptitudeMCQ · 1 mark
In a 2×42 \times 4 rectangle grid shown below, each cell is rectangle. How many rectangles can be observed in the grid?                         \begin{array}{|c|c|c|c|c|}\hline{\;\;\;}&{\;\;\;}&{\;\;\;}&{\;\;\;}\\ \hline{}&{}&{}&\\ \hline\end{array}
Official PYQ2016General AptitudeMCQ · 1 mark
Among 150150 faculty members in an institute, 5555 are connected with each other through Facebook and 8585 are connected through Whatsapp. 3030 faculty members do not have Facebook or Whatsapp accounts. The numbers of faculty members connected only through Facebook accounts is _______.
Official PYQ2016General AptitudeMCQ · 1 mark
Open the full question
Official PYQ2016General AptitudeMCQ · 1 mark
All hill-stations have a lake. Ooty has two lakes. Which of the statement(s) below is/are logically valid and can be inferred from the above sentences? Ooty is not a hill-station. No hill-station can have more than one lake.
Official PYQ2016General AptitudeMCQ · 1 mark
Computers were invented for performing only high-end useful computations. However, it is no understatement that they have taken over our world today. The internet, for example, is ubiquitous. Many believe that the internet itself is an unintended consequence of the original invention. With the advent of mobile computing on our phones, a whole new dimension …
Official PYQ2016General AptitudeMCQ · 1 mark
In a quadratic function, the value of the product of the roots (α,β)(\alpha, \beta) is 44. Find the value of αn+βnα−n+β−n\dfrac{\alpha^{n}+\beta^{n}}{\alpha^{-n}+\beta^{-n}}
Official PYQ2016General AptitudeMCQ · 1 mark
Nobody knows how the Indian cricket team is going to cope with the difficult and seamer-friendly wickets in Australia. Choose the option which is closest in meaning to the underlined phrase in the above sentence.
Official PYQ2016General AptitudeMCQ · 1 mark
Find the odd one in the following group of words. mock, deride, praise, jeer
Official PYQ2016General AptitudeMCQ · 1 mark
The man who is now Municipal Commissioner worked as ________________.
Official PYQ2016General AptitudeMCQ · 1 mark
Pick the odd one from the following options.
Official PYQ2015Compiler DesignIntermediate Code GenerationNAT · 1 mark
The least number of temporary variables required to create a three-address code in static single assignment form for the expression q+r/3+s−t∗5+u∗v/wq + r / 3 + s - t * 5 + u * v/w is__________________.
Official PYQ2015Engineering MathematicsGraphs: Connectivity, Matching, ColouringNAT · 1 mark
Let G be a connected planar graph with 10 vertices. If the number of edges on each face is three, then the number of edges in G is_______________.
Official PYQ2015Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 1 mark
Suppose that the stop-and-wait protocol is used on a link with a bit rate of 6464 kilobits\text{kilobits} per second and 2020 milliseconds\text{milliseconds} propagation delay. Assume that the transmission time for the acknowledgment and the processing time at nodes are negligible. Then the minimum frame size in bytes to achieve a link utilization of at least 5050 …
Official PYQ2015Theory of ComputationRegular Expressions and Finite AutomataNAT · 1 mark
Consider the DFAs MM and NN given above. The number of states in a minimal DFA that accept the language L(M)∩L(N)L(M) \cap L(N) is_____________.
Official PYQ2015Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Consider the NPDA ⟨Q={q0,q1,q2},Σ={0,1},Γ={0,1,⊥},δ,q0,⊥,F={q2}⟩\left \langle Q= \left \{ q_{0}, q_{1}, q_{2} \right \},\Sigma = \left \{ 0, 1 \right \}, \Gamma = \left \{ 0, 1, \perp \right \}, \delta, q_{0}, \perp, F =\left \{ q_{2} \right \} \right \rangle, where (as per usual convention) QQ is the set of states, Σ\Sigma is the input alphabet, Γ\Gamma is the stack alphabet, δ\delta is …
Official PYQ2015Compiler DesignData Flow Analyses: Constant Propagation, Liveness, CSEMCQ · 1 mark
A variable xx is said to be live at a statement sis_{i} in a program if the following three conditions hold simultaneously: There exists a statement SjS_{j} that uses xx There is a path from SiS_{i} to SjS_{j} in the flow graph corresponding to the program The path has no intervening assignment to xx including at SiS_{i} and SjS_{j} The …
Official PYQ2015AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Let an_{n} represent the number of bit strings of length n containing two consecutive 11s. What is the recurrence relation for ana_{n}?
Official PYQ2015Operating SystemI/O SchedulingNAT · 1 mark
Consider a disk pack with a seek time of 44 milliseconds and rotational speed of 1000010000 rotations per minute (RPM). It has 600600 sectors per track and each sector can store 512512 bytes of data. Consider a file stored in the disk. The file contains 20002000 sectors. Assume that every sector access necessitates a seek, and the average rotational …
Official PYQ2015Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a main memory with five-page frames and the following sequence of page references: 3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3\text{3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3}. Which one of the following is true with respect to page replacement policies First In First Out (FIFO) and Least Recently Used (LRU)?