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 PYQ2007Operating SystemProcesses and ThreadsMCQ · 1 mark
Consider the following statements about user level threads and kernel level threads. Which one of the following statements is FALSE?
Official PYQ2007Compiler DesignParsing (LL, LR)MCQ · 1 mark
Which one of the following is a top-down parser?
Official PYQ2007Operating SystemCPU SchedulingMCQ · 1 mark
Group 1 contains some CPU scheduling algorithms and Group 2 contains some applications. Match entries in Group 1 to entries in Group 2. …
Official PYQ2007Programming and Data StructuresTreesMCQ · 1 mark
The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number of nodes in a binary tree of height hh is:
Official PYQ2007AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Which of the following sorting algorithms has the lowest worse-case complexity?
Official PYQ2007Programming and Data StructuresTreesMCQ · 1 mark
The maximum number of binary trees that can be formed with three unlabeled nodes is:
Official PYQ2007Operating SystemI/O SchedulingMCQ · 1 mark
Consider a disk pack with 1616 surfaces, 128128 tracks per surface and 256256 sectors per track. 512512 bytes of data are stored in a bit serial manner in a sector. The capacity of the disk pack and the number of bits required to specify a particular sector in the disk are respectively:
Official PYQ2007Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a 44-way set associative cache consisting of 128128 lines with a line size of 6464 words. The CPU generates a 20−bit20-bit address of a word in main memory. The number of bits in the TAG, LINE and WORD fields are respectively:
Official PYQ2007Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
Consider the following Boolean function of four variables: f(w,x,y,z)=Σ(1,3,4,6,9,11,12,14)f(w, x, y, z) = \Sigma(1, 3, 4, 6, 9, 11, 12, 14) The function is
Official PYQ2007Digital LogicCombinational CircuitsMCQ · 1 mark
How many 33-to-88 line decoders with an enable input are needed to construct a 66-to-6464 line decoder without using any other logic gates?
Official PYQ2007Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which of the following is TRUE?
Official PYQ2007Theory of ComputationUndecidabilityMCQ · 1 mark
Which of the following problems is undecidable?
Official PYQ2007Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
Let GG be the non-planar graph with the minimum possible number of edges. Then GG has
Official PYQ2007Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
What is the maximum number of different Boolean functions involving nn Boolean variables?
Official PYQ2007Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let SS be a set of nn elements. The number of ordered pairs in the largest and the smallest equivalence relations on SS are:
Official PYQ2007Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityMCQ · 1 mark
Consider the following two statements about the function f(x)=∣x∣f(x)=\left\vert x\right\vert: P. f(x)f(x) is continuous for all real values of xx. Q. f(x)f(x) is differentiable for all real values of xx . Which of the following is TRUE?
Official PYQ2007Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionMCQ · 1 mark
Let A be a 4×44 \times 4 matrix with eigen values -5,-2,1,4. Which of the following is an eigen value of the matrix[AIIA]\begin{bmatrix} A & I \\ I & A \end{bmatrix}, where II is the 4×44 \times 4 identity matrix?
Official PYQ2006Compiler DesignParsing (LL, LR)MCQ · 1 mark
The grammar S→AC∣CBS\rightarrow AC\mid CB C→aCb∣ϵC\rightarrow aCb\mid \epsilon A→aA∣aA\rightarrow aA\mid a B→Bb∣bB\rightarrow Bb\mid b generates the language L={aibj∣i≠j}L=\left \{ a^{i}b^{j}\mid i\neq j \right \}. In this grammar what is the length of the derivation (number of steps starting from SS) to generate the string albma^{l}b^{m} with l≠ml\neq m
Official PYQ2006Programming and Data StructuresBinary HeapsMCQ · 1 mark
Statement for Linked Answer Questions 76 & 77: A 33-ary max heap is like a binary max heap, but instead of 22 children, nodes have 33 children. A 33-ary heap can be represented by an array as follows: The root is stored in the first location, a[0]a[0], nodes in the next level, from left to right, is stored from a[1]a[1] to a[3]a[3]. The nodes …
Official PYQ2006Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
Consider the diagram shown below where a number of LANs are connected by (transparent) bridges. In order to avoid packets looping through circuits in the graph, the bridges organize themselves in a spanning tree. First, the root bridge is identified as the bridge with the least serial number. Next, the root sends out (one or more) data units to enable the …