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 PYQ1996Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A computer system has a three-level memory hierarchy, with access time and hit ratios as shown below: …
Official PYQ1996Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeNAT · 1 mark
A hard disk is connected to a 5050 MHz processor through a DMA controller. Assume that the initial set-up of a DMA transfer takes 10001000 clock cycles for the processor, and assume that the handling of the interrupt at DMA completion requires 500500 clock cycles for the processor. The hard disk has a transfer rate of 20002000 Kbytes/sec and average block …
Official PYQ1996Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
A micro program control unit is required to generate a total of 2525 control signals. Assume that during any micro instruction, at most two control signals are active. Minimum number of bits required in the control word to generate the required control signals will be:
Official PYQ1996Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
What is the equivalent Boolean expression in product-of-sums form for the Karnaugh map given in Fig
Official PYQ1996Digital LogicSequential CircuitsMCQ · 1 mark
Consider the following state table for a sequential machine. The number of states in the minimized machine will be …
Official PYQ1996Digital LogicCombinational CircuitsMCQ · 1 mark
Consider the circuit in figure. ff implements
Official PYQ1996Digital LogicCombinational CircuitsMCQ · 1 mark
Consider the circuit in below figure which has a four bit binary number b3b2b1b0b_3b_2b_1b_0 as input and a five bit binary number, d4d3d2d1d0d_4d_3d_2d_1d_0 as output.
Official PYQ1996Operating SystemCPU SchedulingMCQ · 1 mark
Four jobs to be executed on a single processor system arrive at time 00 in the order A,B,C,DA, B, C, D. Their burst CPU time requirements are 4,1,8,14, 1, 8, 1 time units respectively. The completion time of AA under round robin scheduling with time slice of one time unit is
Official PYQ1996Operating SystemConcurrency and SynchronizationMCQ · 1 mark
A solution to the Dining Philosophers Problem which avoids deadlock is to
Official PYQ1996Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A 10001000 Kbyte\text{Kbyte} memory is managed using variable partitions but no compaction. It currently has two partitions of sizes 200200 Kbyte\text{Kbyte} and 260260 Kbyte\text{Kbyte} respectively. The smallest allocation request in Kbyte\text{Kbyte} that could be denied is for
Official PYQ1996Compiler DesignRuntime EnvironmentsMCQ · 1 mark
The correct matching for the following pairs is …
Official PYQ1996Compiler DesignLexical AnalysisMCQ · 1 mark
Which of the following macros can put a macro assembler into an infinite loop? .MACRO M1, X .IF EQ, X ;if X=0 then M1 X + 1 .ENDC .IF NE, X ;if X ≠ O then .WORD X ;address (X) is stored here .ENDC .ENDM .MACRO M2, X .IF EQ, X M2 X .ENDC .IF NE, X .WORD X + 1 .ENDC .ENDM
Official PYQ1996AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Quick-sort is run on two inputs shown below to sort in ascending order taking first element as pivot 1,2,3,…n1, 2, 3, \dots n n,n−1,n−2,…,2,1n, n-1, n-2, \dots, 2, 1 Let C1C_1 and C2C_2 be the number of comparisons made for the inputs (i) and (ii) respectively. Then,
Official PYQ1996AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
The average number of key comparisons required for a successful search for sequential search on nn items is
Official PYQ1996Programming and Data StructuresBinary Search TreesMCQ · 1 mark
A binary search tree is generated by inserting in order the following integers: 50,15,62,5,20,58,91,3,8,37,60,2450, 15, 62, 5, 20, 58, 91, 3, 8, 37, 60, 24 The number of nodes in the left subtree and right subtree of the root respectively is
Official PYQ1996AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The recurrence relation T(1)=2T(1) = 2 T(n)=3T(n4)+nT(n) = 3T (\frac{n}{4}) +n has the solution T(n)T(n) equal to
Official PYQ1996Programming and Data StructuresBinary HeapsMCQ · 1 mark
The minimum number of interchanges needed to convert the array into a max-heap is 89,19,40,17,12,10,2,5,7,11,6,9,7089, 19, 40, 17, 12, 10, 2, 5, 7, 11, 6, 9, 70
Official PYQ1996Compiler DesignParsing (LL, LR)MCQ · 1 mark
The grammar whose productions are ⟨stmt⟩→ if id then ⟨stmt⟩\langle\text{stmt}\rangle \to\text{ if id then } \langle\text{stmt}\rangle ⟨stmt⟩→ if id then ⟨stmt⟩ else ⟨stmt⟩\langle\text{stmt}\rangle\to\text{ if id then } \langle\text{stmt}\rangle\text{ else } \langle\text{stmt}\rangle ⟨stmt⟩→ id := id\langle\text{stmt}\rangle \to\text{ id }:=\text{ id} is ambiguous because if a then if b then c:= d has more than two parse …
Official PYQ1996Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
If L1L_1 and L2L_2 are context free languages and RR a regular set, one of the languages below is not necessarily a context free language. Which one?
Official PYQ1996Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
The probability that top and bottom cards of a randomly shuffled deck are both aces is