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 LogicNumber Representations (Fixed and Floating Point)NAT · 1 mark
The 16-bit  2′s16\text{-bit}\;2's complement representation of an integer is 1111111111110101;1111 \quad 1111 \quad 1111 \quad 0101; its decimal representation is ____________
Official PYQ2016Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 00's and two consecutive 11's?
Official PYQ2016DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Which one of the following is NOT a part of the ACID properties of database transactions?
Official PYQ2016Programming and Data StructuresProgramming in CNAT · 1 mark
Consider the following C program. # include <stdio.h> void mystery (int *ptra, int *ptrb) { int *temp; temp = ptrb; ptrb =ptra; ptra = temp; } int main () { int a = 2016, b=0, c= 4, d = 42; mystery (&a, &b); if (a < c) mystery (&c, &a); mystery (&a, &d); printf("%d\n", a); } The output of the program is _________.
Official PYQ2016Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Which of the following languages is generated by the given grammar? S→aS∣bS∣εS \rightarrow aS \mid bS \mid \varepsilon
Official PYQ2016Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailMCQ · 1 mark
Which one of the following protocols is NOT used to resolve one form of address to another one?
Official PYQ2016Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following "C" program. void f(int, short); void main() { int i = 100; short s = 12; short *p = &s; ____________; // call to f() } Which one of the following expressions , when placed in the blank above, will NOT result in a type checking error?
Official PYQ2016DatabasesNormal FormsMCQ · 1 mark
Which of the following is NOT a superkey in a relational schema with attributes V,W,X,Y,ZV,W,X,Y,Z and primary key V  YV\;Y?
Official PYQ2016Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
Let ana_n be the number of nn-bit strings that do NOT contain two consecutive 1′s1's. Which one of the following is the recurrence relation for ana_n?
Official PYQ2016Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionNAT · 1 mark
Two eigenvalues of a 3×33 \times 3 real matrix PP are (2+−1)(2+\sqrt {-1}) and 33. The determinant of PP is _______
Official PYQ2016Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A processor can support a maximum memory of 4  GB4\;\textsf{GB}, where the memory is word-addressable (a word consists of two bytes). The size of address bus of the processor is at least _________bits.
Official PYQ2016Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityNAT · 1 mark
lim⁡x→4sin⁡(x−4)x−4=____________\lim _{x\rightarrow 4}\frac{\sin(x-4)}{x-4}=\_\_\_\_\_\_\_\_\_\_\_\_
Official PYQ2016Digital LogicBoolean AlgebraMCQ · 1 mark
Consider the Boolean operator # with the following properties : x#0=x,x#1=x‾,x#x=0x \# 0 = x, x \# 1=\overline{x}, x \# x = 0 and x#x‾=1.x \# \overline{x} = 1. Then x#yx\#y is equivalent to
Official PYQ2016Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailMCQ · 1 mark
Which of the following is/are example(s) of stateful application layer protocol? HTTP\textsf{HTTP} FTP\textsf{FTP} TCP\textsf{TCP} POP3\textsf{POP3}
Official PYQ2016Computer Organization and ArchitectureALU, Data-path and Control UnitNAT · 1 mark
Suppose the functions FF and GG can be computed in 55 and 33 nanoseconds by functional units UFU_{F} and UGU_{G}, respectively. Given two instances of UFU_{F} and two instances of UGU_{G}, it is required to implement the computation F(G(Xi))F(G(X_{i})) for 1≤i≤101 \leq i \leq 10. Ignoring all other delays, the minimum time required to complete …
Official PYQ2016Operating SystemCPU SchedulingNAT · 1 mark
Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds. The scheduling algorithm used is preemptive shortest remaining-time first. …
Official PYQ2016Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
The width of the physical address on a machine is 4040 bits. The width of the tag field in a 512512 KB 88-way set associative cache is ________ bits.
Official PYQ2016Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Which one of the following well-formed formulae in predicate calculus is NOT valid ?
Official PYQ2016AlgorithmsGraph Traversals (BFS, DFS)MCQ · 1 mark
In an adjacency list representation of an undirected simple graph G=(V,E)G=(V, E), each edge (u,v)(u, v) has two adjacency list entries: [v][v] in the adjacency list of uu, and [u][u] in the adjacency list of vv. These are called twins of each other. A twin pointer is a pointer from an adjacency list entry to its twin. If ∣E∣=m|E|=m and ∣V∣=n|V|=n, and the …
Official PYQ2016DatabasesTuple Calculus and SQLNAT · 1 mark
Consider the following database table named water_schemes: …