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 PYQ2016Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityNAT · 1 mark
Let f(x)f(x) be a polynomial and g(x)=f′(x)g(x)=f'(x) be its derivative. If the degree of (f(x)+f(−x))(f(x)+f(-x)) is 1010, then the degree of (g(x)−g(−x))(g(x) - g(-x)) is __________.
Official PYQ2016AlgorithmsAlgorithm Design: Dynamic ProgrammingMCQ · 1 mark
The Floyd-Warshall algorithm for all-pair shortest paths computation is based on
Official PYQ2016Engineering MathematicsPropositional and First Order LogicNAT · 1 mark
Consider the following expressions: falsefalse QQ truetrue P∨QP\vee Q ¬Q∨P\neg Q\vee P The number of expressions given above that are logically implied by P∧(P⇒Q)P \wedge (P \Rightarrow Q) is ___________.
Official PYQ2016DatabasesFile Organization and Indexing (B and B+ Trees)MCQ · 1 mark
B+ Trees are considered BALANCED because.
Official PYQ2016Programming and Data StructuresProgramming in CNAT · 1 mark
The value printed by the following program is _______. void f (int * p, int m) { m = m + 5; *p = *p + m; return; } void main () { int i=5, j=10; f (&i, j); printf ("%d", i+j); }
Official PYQ2016AlgorithmsGraph Traversals (BFS, DFS)NAT · 1 mark
Breadth First Search (BFS) is started on a binary tree beginning from the root vertex. There is a vertex tt at a distance four from the root. If tt is the nthn^{\text{th}} vertex in this BFS traversal, then the maximum possible value of nn is __________
Official PYQ2016Theory of ComputationRegular Expressions and Finite AutomataNAT · 1 mark
The number of states in the minimum sized DFA that accepts the language defined by the regular expression. (0+1)∗(0+1)(0+1)∗(0+1)^{*} (0+1) (0+1)^{*} is ________.
Official PYQ2016AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Assume that the algorithms considered here sort the input sequences in ascending order. If the input is already in the ascending order, which of the following are TRUE? Quicksort runs in Θ(n2)\Theta (n^2) time Bubblesort runs in Θ(n2)\Theta (n^2) time Mergesort runs in Θ(n)\Theta (n) time Insertion sort runs in Θ(n)\Theta (n) time
Official PYQ2016Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
In which one of the following page replacement algorithms it is possible for the page fault rate to increase even when the number of allocated frames increases?
Official PYQ2016Programming and Data StructuresLinked ListsMCQ · 1 mark
NN items are stored in a sorted doubly linked list. For a delete operation, a pointer is provided to the record to be deleted. For a decrease-key operation, a pointer is provided to the record on which the operation is to be performed. An algorithm performs the following operations on the list in this order: Θ(N)\Theta \left(N\right) delete, …
Official PYQ2016Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Anarkali digitally signs a message and sends it to Salim. Verification of the signature by Salim requires.
Official PYQ2016Engineering MathematicsGraphs: Connectivity, Matching, ColouringNAT · 1 mark
The minimum number of colours that is sufficient to vertex-colour any planar graph is ________.
Official PYQ2016DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Suppose a database schedule SS involves transactions T1,…,TnT_1,\ldots,T_n . Construct the precedence graph of SS with vertices representing the transactions and edges representing the conflicts. If SS is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?
Official PYQ2016Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionNAT · 1 mark
Suppose that the eigenvalues of matrix AA are 1,2,41, 2, 4. The determinant of (A−1)T\left(A^{-1}\right)^{T} is _________.
Official PYQ2016Digital LogicNumber Representations (Fixed and Floating Point)NAT · 1 mark
Let XX be the number of distinct 1616-bit integers in 2′s2's complement representation. Let YY be the number of distinct 1616-bit integers in sign magnitude representation Then X−YX - Y is______.
Official PYQ2016Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 1 mark
A processor has 4040 distinct instruction and 2424 general purpose registers. A 3232-bit instruction word has an opcode, two registers operands and an immediate operand. The number of bits available for the immediate operand field is_______.
Official PYQ2016Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
Consider the systems, each consisting of mm linear equations in nn variables. If m<nm < n, then all such systems have a solution. If m>nm > n, then none of these systems has a solution. If m=nm = n, then there exists a system which has a solution. Which one of the following is CORRECT?
Official PYQ2016Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
In an Ethernet local area network, which one of the following statements is TRUE?
Official PYQ2016Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Language L1L_{1} is defined by the grammar: S1→aS1b∣εS_{1} \rightarrow a S_{1} b \mid \varepsilon Language L2L_{2} is defined by the grammar: S2→abS2∣εS_{2} \rightarrow a b S_{2} \mid \varepsilon Consider the following statements: P: L1L_{1} is regular Q: L2L_{2} is regular Which one of the following is TRUE?
Official PYQ2016Engineering MathematicsConditional Probability and Bayes TheoremNAT · 1 mark
Suppose that a shop has an equal number of LED bulbs of two different types. The probability of an LED bulb lasting more than 100100 hours given that it is of Type 11 is 0.70.7, and given that it is of Type 22 is 0.40.4. The probability that an LED bulb chosen uniformly at random lasts more than 100100 hours is _________.