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 MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
In a connected graph, a bridge is an edge whose removal disconnects the graph. Which one of the following statements is true?
Official PYQ2015Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which of the following is/are regular languages? L1:{wxwR∣w,x∈{a,b}∗ and ∣w∣,∣x∣>0},wR is the reverse of string wL_1: \left\{ wxw^R \mid w, x \in \{a, b\} ^* \text{ and } |w|, |x| > 0\right\}, w^R \text{ is the reverse of string } w L2:{anbm∣m≠n and m,n≥0}L_2: \left\{ a^nb^m \mid m \neq n \text{ and } m, n \geq 0 \right\} L3:{apbqcr∣p,q,r≥0}L_3: \left\{ a^pb^qc^r \mid p, q, r \geq 0 \right\}
Official PYQ2015Operating SystemI/O SchedulingNAT · 1 mark
Consider a typical disk that rotates at 1500015000 rotations per minute (RPM) and has a transfer rate of 50×10650 \times 10^6 bytes/sec. If the average seek time of the disk is twice the average rotational delay and the controller's transfer time is 1010 times the disk transfer time, the average time (in milliseconds) to read or write a 512512-byte sector of …
Official PYQ2015Digital LogicComputer ArithmeticNAT · 1 mark
A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.21.2 microseconds. A 44-bit-ripple-carry binary adder is implemented by using four full adders. The total propagation time …
Official PYQ2015Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
A computer system implements 8  kilobyte8\;\text{kilobyte} pages and a 32-bit32\text{-bit} physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is 24  megabytes24\;\text{megabytes}, the length of the virtual address supported by the system is _______ …
Official PYQ2015DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider a simple checkpointing protocol and the following set of operations in the log. (start, T4); (write, T4, y, 2, 3); (start, T1); (commit, T4); (write, T1, z, 5, 7); (checkpoint); (start, T2); (write, T2, x, 1, 9); (commit, T2); (start, T3); (write, T3, z, 7, 2); If a crash happens now and the system tries to recover using both undo and redo …
Official PYQ2015AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Suppose you are provided with the following function declaration in the C programming language. int partition(int a[], int n); The function treats the first element of a[ ]a[\:] as a pivot and rearranges the array so that all elements less than or equal to the pivot is in the left part of the array, and all elements greater than the pivot is in the right …
Official PYQ2015Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
Consider the sequence of machine instruction given below: MULR5, R0, R1DIVR6, R2, R3ADDR7, R5, R6SUBR8, R7, R4\begin{array}{ll} \text{MUL} & \text{R5, R0, R1} \\ \text{DIV} & \text{R6, R2, R3} \\ \text{ADD} & \text{R7, R5, R6} \\ \text{SUB} & \text{R8, R7, R4} \\ \end{array} In the above sequence, R0R0 to R8R8 are general purpose registers. In the instructions shown, the first register …
Official PYQ2015Software Engineering (Historical)MCQ · 1 mark
Which one of the following assertions concerning code inspection and code walkthrough is true?
Official PYQ2015Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a processor with byte-addressable memory. Assume that all registers, including program counter (PC) and Program Status Word (PSW), are size of two bytes. A stack in the main memory is implemented from memory location (0100)16(0100)_{16} and it grows upward. The stack pointer (SP) points to the top element of the stack. The current value of SP is …
Official PYQ2015Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 1 mark
Consider the following routing table at an IP router: …
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
The number of onto functions (surjective functions) from set X={1,2,3,4}X = \{1, 2, 3, 4\} to set Y={a,b,c}Y=\{a,b,c\} is ______.
Official PYQ2015Numerical Methods (Historical)MCQ · 1 mark
The secant method is used to find the root of an equation f(x)=0f(x)=0. It is started from two distinct estimates xax_a and xbx_b for the root. It is an iterative procedure involving linear interpolation to a root. The iteration stops if f(xb)f(x_b) is very small and then xbx_b is the solution. The procedure is given below. Observe that there is an …
Official PYQ2015Programming and Data StructuresArrays, Stacks and QueuesNAT · 1 mark
Consider the C program below #include <stdio.h> int *A, stkTop; int stkFunc (int opcode, int val) { static int size=0, stkTop=0; switch (opcode) { case -1: size = val; break; case 0: if (stkTop < size ) A[stkTop++]=val; break; default: if (stkTop) return A[--stkTop]; } return -1; } int main() { int B[20]; A=B; stkTop = -1; stkFunc (-1, 10); stkFunc …
Official PYQ2015AlgorithmsAlgorithm Design: Greedy TechniquesMCQ · 1 mark
Given below are some algorithms, and some algorithm design paradigms. …
Official PYQ2015Digital LogicBoolean AlgebraNAT · 1 mark
The number of min-terms after minimizing the following Boolean expression is _______. [D′+AB′+A′C+AC′D+A′C′D]′[D'+AB'+A'C+AC'D+A'C'D]'
Official PYQ2015Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the alphabet Σ={0,1}\Sigma = \{0, 1\}, the null/empty string λ\lambda and the set of strings X0,X1, and X2X_0, X_1, \text{ and } X_2 generated by the corresponding non-terminals of a regular grammar. X0,X1, and X2X_0, X_1, \text{ and } X_2 are related as follows. X0=1X1X_0 = 1 X_1 X1=0X1+1X2X_1 = 0 X_1 + 1 X_2 X2=0X1+{λ}X_2 = 0 X_1 + \{ \lambda \} Which one of the following …
Official PYQ2015Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Assume that the bandwidth for a TCP\text{TCP} connection is 10485601048560 bits/sec. Let α\alpha be the value of RTT in milliseconds (rounded off to the nearest integer) after which the TCP\text{TCP} window scale option is needed. Let β\beta be the maximum possible window size with window scale option. Then the values of α\alpha and β\beta are
Official PYQ2015Programming and Data StructuresGraphsMCQ · 1 mark
Which one of the following hash functions on integers will distribute keys most uniformly over 1010 buckets numbered 00 to 99 for ii ranging from 00 to 20202020?
Official PYQ2015DatabasesNormal FormsMCQ · 1 mark
Consider two relations R1(A,B)R_1(A,B) with the tuples (1,5),(3,7)(1,5), (3,7) and R2(A,C)=(1,7),(4,9)R_2(A,C) = (1,7),(4,9). Assume that R(A,B,C)R(A,B,C) is the full natural outer join of R1R_1 and R2R_2. Consider the following tuples of the form (A,B,C):(A,B,C): a=(1,5,null),b=(1,null,7),c=(3,null,9),d=(4,7,null),e=(1,5,7),a = (1,5,null), b=(1,null,7), c=(3,null,9), d=(4,7,null), e=(1,5,7), f=(3,7,null),g=(4,null,9).f=(3,7,null), g=(4,null,9). Which one of the …