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 PYQ1995AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
A language with string manipulation facilities uses the following operations head(s): first character of a string tail(s): all but exclude the first character of a string concat(s1, s2): s1s2 For the string "acbcacbc" what will be the output of concat(head(s), head(tail(tail(s))))
Official PYQ1995Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
The address sequence generated by tracing a particular program executing in a pure demand based paging system with 100100 records per page with 11 free main memory frame is recorded as follows. What is the number of page faults? 0100,0200,0430,0499,0510,0530,0560,0120,0220,0240,0260,0320,03700100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320, 0370
Official PYQ1995Operating SystemCPU SchedulingMCQ · 1 mark
The sequence __________ is an optimal non-preemptive scheduling sequence for the following jobs which leaves the CPU idle for ________ unit(s) of time. …
Official PYQ1995Digital LogicBoolean AlgebraMCQ · 1 mark
What values of A,B,CA, B, C and DD satisfy the following simultaneous Boolean equations? A‾+AB=0,AB=AC,AB+AC‾+CD=C‾D\overline{A} + AB =0, AB=AC, AB+A\overline{C}+CD=\overline{C}D
Official PYQ1995Compiler DesignRuntime EnvironmentsMCQ · 1 mark
What is the value of XX printed by the following program? program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 FIND(X); writeln(X); end.
Official PYQ1995AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Assume that XX and YY are non-zero positive integers. What does the following Pascal program segment do? while X <> Y do if X > Y then X := X - Y else Y := Y - X; write(X);
Official PYQ1995Digital LogicCombinational CircuitsMCQ · 1 mark
The capacity of a memory unit is defined by the number of words multiplied by the number of bits/word. How many separate address and data lines are needed for a memory of 4K×164K \times 16?
Official PYQ1995Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
The minimum number of edges in a connected cyclic graph on nn vertices is:
Official PYQ1995Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
The rank of the following (n+1)×(n+1)(n+1) \times (n+1) matrix, where aa is a real number is …
Official PYQ1995Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
In the interval [0,π][0, \pi] the equation x=cos⁡xx=\cos x has
Official PYQ1995Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
The number of elements in the power set P(S)P(S) of the set S={{∅},1,{2,3}}S=\{\{\emptyset\}, 1, \{2, 3\}\} is:
Official PYQ1995Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let RR be a symmetric and transitive relation on a set AA. Then
Official PYQ1995Programming and Data StructuresTreesMCQ · 1 mark
A binary tree TT has nn leaf nodes. The number of nodes of degree 22 in TT is
Official PYQ1995AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
For merging two sorted lists of sizes mm and nn into a sorted list of size m+nm+n, we require comparisons of
Official PYQ1995Operating SystemCPU SchedulingMCQ · 1 mark
Which scheduling policy is most suitable for a time shared operating system?
Official PYQ1995Compiler DesignRuntime EnvironmentsMCQ · 1 mark
A linker is given object modules for a set of programs that were compiled separately. What information need not be included in an object module?
Official PYQ1995Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
What is the distance of the following code 000000000000, 010101010101, 000111000111, 011001011001, 111111111111?
Official PYQ1995Compiler DesignLexical AnalysisMCQ · 1 mark
What are xx and yy in the following macro definition? macro Add x, y Load y Mul x Store y end macro
Official PYQ1995Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider a grammar with the following productions S→aαb∣bαc∣aBS \rightarrow a \alpha b \mid b \alpha c \mid aB S→αS∣bS \rightarrow \alpha S\mid b S→αbb∣abS \rightarrow \alpha b b\mid ab Sα→bdb∣bS \alpha \rightarrow bd b\mid b The above grammar is:
Official PYQ1995Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Which of the following page replacement algorithms suffers from Belady’s anamoly?