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 PYQ2012Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Consider a source computer (S)(S) transmitting a file of size 10610^{6} bits to a destination computer (D)(D) over a network of two routers (R1 and R2)(R_{1}\text{ and }R_{2}) and three links (L1,L2, and L3)(L_{1},L_{2},\text{ and } L_{3}). L1L_{1} connects SS to R1R_{1}; L2L_{2} connects R1R_{1} to R2R_{2}; and L3L_{3} connects R2R_{2} to DD. Let each …
Official PYQ2012DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Suppose R1(A‾,B)R_{1} (\underline{A}, B) and R2(C‾,D)R_{2} (\underline{C}, D) are two relation schemas. Let r1r_{1} and r2r_{2} be the corresponding relation instances. BB is a foreign key that refers to CC in R2R_{2}. If data in r1r_{1} and r2r_{2} satisfy referential integrity constraints, which of the following is ALWAYS TRUE?
Official PYQ2012Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider the virtual page reference string 1, 2, 3, 2, 4, 1, 3, 2, 4, 1\text{1, 2, 3, 2, 4, 1, 3, 2, 4, 1} on a demand paged virtual memory system running on a computer system that has main memory size of 33 page frames which are initially empty. Let LRU\text{LRU}, FIFO\text{FIFO} and OPTIMAL\text{OPTIMAL} denote the number of page faults under the corresponding page replacement …
Official PYQ2012AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
A list of nn strings, each of length nn, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is
Official PYQ2012Operating SystemI/O SchedulingMCQ · 1 mark
A file system with 300300 GByte disk uses a file descriptor with 88 direct block addresses, 11 indirect block address and 11 doubly indirect block address. The size of each disk block is 128128 Bytes and the size of each disk block address is 88 Bytes. The maximum possible file size in this file system is
Official PYQ2012Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
How many onto (or surjective) functions are there from an nn-element (n≥2)(n ≥ 2) set to a 22-element set?
Official PYQ2012Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
Suppose a circular queue of capacity (n−1)(n −1) elements is implemented with an array of nn elements. Assume that the insertion and deletion operations are carried out using REAR\textsf{REAR} and FRONT\textsf{FRONT} as array index variables, respectively. Initially, REAR=FRONT=0\textsf{REAR} = \textsf{FRONT} = 0. The conditions to detect queue full and queue empty …
Official PYQ2012Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 1 mark
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20245.248.128.0/20. The ISP wants to give half of this chunk of addresses to Organization AA, and a quarter to Organization BB, while retaining the remaining with itself. Which of the following is a valid allocation of addresses to AA and …
Official PYQ2012Engineering MathematicsConditional Probability and Bayes TheoremMCQ · 1 mark
Suppose a fair six-sided die is rolled once. If the value on the die is 1,2,1, 2, or 3,3, the die is rolled a second time. What is the probability that the sum total of values that turn up is at least 66 ?
Official PYQ2012Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Fetch_And_Add(X,i) is an atomic Read-Modify-Write instruction that reads the value of memory location XX, increments it by the value ii, and returns the old value of XX. It is used in the pseudocode shown below to implement a busy-wait lock. LL is an unsigned integer shared variable initialized to 00. The value of 00 corresponds to lock …
Official PYQ2012Operating SystemCPU SchedulingMCQ · 1 mark
Consider the 33 processes, P1,P2P1, P2 and P3P3 shown in the table. ProcessArrival TimeTime Units RequiredP105P217P334\small \begin{array}{|c|c|c|} \hline \textbf{Process} & \textbf{Arrival Time} & \textbf{Time Units Required} \\ \hline \text{P1} & 0 & 5\\ \hline \text{P2} & 1 & 7 \\ \hline \text{P3} & 3 & 4 \\ \hline \end{array}The completion order of the 33 …
Official PYQ2012Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
What is the minimal form of the Karnaugh map shown below? Assume that XX denotes a don’t care term
Official PYQ2012Numerical Methods (Historical)MCQ · 1 mark
The bisection method is applied to compute a zero of the function f(x)=x4–x3–x2–4f(x) =x ^{4} – x ^{3} – x ^{2} – 4 in the interval [1,9]. The method converges to a solution after ––––– iterations.
Official PYQ2012DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider the following transactions with data items PP and QQ initialized to zero: …
Official PYQ2012Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
Which of the following graphs is isomorphic to
Official PYQ2012Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Given the language L={ab,aa,baa}L = \left\{ab, aa, baa\right\}, which of the following strings are in L∗L^{*}? abaabaaabaaabaabaaabaa aaaabaaaaaaaabaaaa baaaaabaaaabbaaaaabaaaab baaaaabaabaaaaabaa
Official PYQ2012Theory of ComputationUndecidabilityMCQ · 1 mark
Which of the following problems are decidable? Does a given program ever produce an output? If LL is a context-free language, then, is Lˉ\bar{L} also context-free? If LL is a regular language, then, is Lˉ\bar{L} also regular? If LL is a recursive language, then, is Lˉ\bar{L} also recursive?
Official PYQ2012Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 1 mark
In the IPv4 addressing format, the number of networks allowed under Class CC addresses is:
Official PYQ2012Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Which of the following transport layer protocols is used to support electronic mail?
Official PYQ2012Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
Consider a random variable XX that takes values +1+1 and −1−1 with probability 0.50.5 each. The values of the cumulative distribution function F(x)F(x) at x=−1x = −1 and +1+1 are