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 PYQ2012AlgorithmsMinimum Spanning TreesMCQ · 1 mark
Let GG be a weighted graph with edge weights greater than one and G′G' be the graph constructed by squaring the weights of edges in GG. Let TT and T′T' be the minimum spanning trees of GG and G′G', respectively, with total weights tt and t′t'. Which of the following statements is TRUE?
Official PYQ2012Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
Let GG be a complete undirected graph on 66 vertices. If vertices of GG are labeled, then the number of distinct cycles of length 44 in GG is equal to
Official PYQ2012Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Register renaming is done in pipelined processors:
Official PYQ2012Digital LogicCombinational CircuitsMCQ · 1 mark
The amount of ROM needed to implement a 4-bit4\text{-bit} multiplier is
Official PYQ2012AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Let W(n)W(n) and A(n)A(n) denote respectively, the worst case and average case running time of an algorithm executed on an input of size nn. Which of the following is ALWAYS TRUE?
Official PYQ2012Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
Let GG be a simple undirected planar graph on 1010 vertices with 1515 edges. If GG is a connected graph, then the number of bounded faces in any embedding of GG on the plane is equal to
Official PYQ2012AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The recurrence relation capturing the optimal execution time of the Towers of HanoiTowers \ of \ Hanoi problem with nn discs is
Official PYQ2012DatabasesTuple Calculus and SQLMCQ · 1 mark
Which of the following statements are TRUE about an SQL query? P : An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause Q : An SQL query can contain a HAVING clause only if it has a GROUP BY clause R : All attributes used in the GROUP BY clause must appear in the SELECT clause S : Not all attributes used in the GROUP BY clause …
Official PYQ2012Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
What is the correct translation of the following statement into mathematical logic? “Some real numbers are rational”
Official PYQ2012Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
What is the complement of the language accepted by the NFA shown below? Assume Σ={a}\Sigma = \{a\} and ϵ\epsilon is the empty string.
Official PYQ2012Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionMCQ · 1 mark
Let A be the 2×22 × 2 matrix with elements a11=a12=a21=+1a_{11} = a_{12} = a_{21} = +1 and a22=−1a_{22} = −1 . Then the eigenvalues of the matrix A19A^{19} are
Official PYQ2012DatabasesER-modelMCQ · 1 mark
Given the basic ER and relational models, which of the following is INCORRECT?
Official PYQ2012Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailMCQ · 1 mark
The protocol data unit (PDU) for the application layer in the Internet stack is:
Official PYQ2012Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
Consider the function f(x)=sin⁡(x)f(x) = \sin(x) in the interval x=[π4,7π4]x =\left[\frac{\pi}{4},\frac{7\pi}{4}\right]. The number and location(s) of the local minima of this function are
Official PYQ2012Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
The decimal value 0.50.5 in IEEE single precision floating point representation has
Official PYQ2012Operating SystemSystem CallsMCQ · 1 mark
A process executes the code fork(); fork(); fork(); The total number of child processes created is
Official PYQ2012Digital LogicBoolean AlgebraMCQ · 1 mark
The truth table XY(X,Y)000010101111{\begin{array}{|c|c|c|}\hline \textbf{X}& \textbf{Y}& \textbf{(X,Y)} \\ \hline 0& 0& 0 \\ \hline 0& 1&0\\ \hline 1& 0& 1 \\ \hline 1& 1& 1 \\ \hline \end{array}} represents the Boolean function
Official PYQ2012Programming and Data StructuresBinary Search TreesMCQ · 1 mark
The worst case running time to search for an element in a balanced binary search tree with n2nn2^{n} elements is
Official PYQ2012Programming and Data StructuresProgramming in CMCQ · 1 mark
What will be the output of the following C program segment? char inChar = 'A'; switch ( inChar ) { case 'A' : printf ("Choice A \ n"); case 'B' : case 'C' : printf ("Choice B"); case 'D' : case 'E' : default : printf ("No Choice"); }
Official PYQ2012Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Assuming P≠NP\textsf{P} \neq \textsf{NP}, which of the following is TRUE?