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 PYQ2015Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
In a room there are only two types of people, namely Type 1\text{Type 1} and Type 2\text{Type 2}. Type 1\text{Type 1} people always tell the truth and Type 2\text{Type 2} people always lie. You give a fair coin to a person in that room, without knowing which type he is from and tell him to toss it and hide the result from you till you ask for it. Upon asking the …
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Suppose UU is the power set of the set S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}. For any T∈UT \in U, let ∣T∣|T| denote the number of elements in TT and T′T' denote the complement of TT. For any T,R∈U let T\RT, R \in U \text{ let } T \backslash R be the set of all elements in TT which are not in RR. Which one of the following is true?
Official PYQ2015Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider the following statements. TCP connections are full duplex TCP has no option for selective acknowledgement TCP connections are message streams
Official PYQ2015Software Engineering (Historical)NAT · 1 mark
Consider a software project with the following information domain characteristics for calculation of function point metric. Number of external inputs (I) = 30 Number of external outputs (O) = 60 Number of external inquiries (E) = 23 Number of files (F) = 08 Number of external interfaces (N) = 02 It is given that the complexity weighting factors for I, O, E, …
Official PYQ2015DatabasesNormal FormsMCQ · 1 mark
Consider the relation X(P,Q,R,S,T,U)X(P,Q,R,S,T,U) with the following set of functional dependencies F={    {P,R}→{S,T},    {P,S,U}→{Q,R}  }F = \{ \\ \; \; \{P, R\} \rightarrow \{S, T\}, \\ \; \; \{P, S, U\} \rightarrow \{Q, R\} \\ \; \} Which of the following is the trivial functional dependency in F+F^+, where F+F^+ is closure to F?
Official PYQ2015Programming and Data StructuresBinary HeapsMCQ · 1 mark
Consider the following array of elements. ⟨89,19,50,17,12,15,2,5,7,11,6,9,100⟩\langle 89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100 \rangle The minimum number of interchanges needed to convert it into a max-heap is
Official PYQ2015Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Let LL be the language represented by the regular expression Σ∗0011Σ∗\Sigma^*0011\Sigma^* where Σ={0,1}\Sigma = \{0, 1\}. What is the minimum number of states in a DFA that recognizes Lˉ\bar{L} (complement of LL)?
Official PYQ2015Programming and Data StructuresArrays, Stacks and QueuesNAT · 1 mark
Given that hash table TT with 2525 slots that stores 20002000 elements, the load factor aa for TT is _________.
Official PYQ2015Compiler DesignParsing (LL, LR)MCQ · 1 mark
Among simple LR (SLR), canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful, in that order?
Official PYQ2015Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionMCQ · 1 mark
In the given matrix [1−12010121]\begin{bmatrix} 1 & -1 & 2 \\ 0 & 1 & 0 \\ 1 & 2 & 1 \end{bmatrix} , one of the eigenvalues is 1.1. The eigenvectors corresponding to the eigenvalue 11 are
Official PYQ2015Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a machine with a byte addressable main memory of 2202^{20} bytes, block size of 1616 bytes and a direct mapped cache having 2122^{12} cache lines. Let the addresses of two consecutive bytes in main memory be (E201F)16\textsf{(E201F)}_{16} and (E2020)16\textsf{(E2020)}_{16}. What are the tag and cache line addresses ( in hex) for main memory address …
Official PYQ2015Programming and Data StructuresBinary Search TreesMCQ · 1 mark
While inserting the elements 71,65,84,69,67,8371, 65, 84, 69, 67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is
Official PYQ2015Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
The result evaluating the postfix expression 10 5+60 6/∗8−10 \ 5 + 60 \ 6 / * 8 - is
Official PYQ2015Software Engineering (Historical)NAT · 1 mark
Consider a software program that is artificially seeded with 100 faults. While testing this program, 159 faults are detected, out of which 75 faults are from those artificially seeded faults. Assuming that both real and seeded faults are of same nature and have same distribution, the estimated number of undetected real faults is _______.
Official PYQ2015Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Two processes XX and YY need to access a critical section. Consider the following synchronization construct used by both the processes …
Official PYQ2015Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityMCQ · 1 mark
The value of lim⁡x→∞(1+x2)e−x\displaystyle \lim_{x \rightarrow \infty} (1+x^2)^{e^{-x}} is
Official PYQ2015Web Technologies (Historical)MCQ · 1 mark
In a web server, ten WebPages are stored with the URLs of the form http://www.yourname.com/var.html; where var is a different number from 1 to 10 for each Webpage. Suppose the client stores the Webpage with var = 1 (say W1) in the local machine, edits and then tests. Rest of the Webpages remains on the web server. W1 contains several relative URLs of the …
Official PYQ2015Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
Consider the following C program segment. # include <stdio.h> int main() { char s1[7] = "1234", *p; p = s1 + 2; *p = '0'; printf("%s", s1); } What will be printed by the program?
Official PYQ2015Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider a CSMA/CD network that transmits data at a rate of 100  Mbps  (108  bits100\;\textsf{Mbps}\; (10^8\;\text{bits} per second) over a 1  km1\;\textsf{km} (kilometre) cable with no repeaters. If the minimum frame size required for this network is 1250  bytes,1250\;\text{bytes}, What is the signal speed (km/sec)\textsf{(km/sec)} in the cable?
Official PYQ2015Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The number of 44 digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set {1,2,3}\{1, 2, 3\} is ________.