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 PYQ1997Operating SystemI/O SchedulingNAT · 1 mark
A program PP reads and processes 10001000 consecutive records from a sequential file FF stored on device DD without using any file system facilities. Given the following Size of each record =3200= 3200 bytes Access time of D=10D = 10 msecs Data transfer rate of D=800×103D = 800 \times 10^3 bytes/second CPU time to process each record =3= 3 msecs What is …
Official PYQ1997Digital LogicMinimization (K-Maps etc.)NAT · 1 mark
Let f=(wˉ+y)(xˉ+y)(w+xˉ+z)(wˉ+z)(xˉ+z)f=(\bar{w} + y)(\bar{x} +y)(w+\bar{x}+z)(\bar{w}+z)(\bar{x}+z) Express ff as the minimal sum of products. Write only the answer. If the output line is stuck at 00, for how many input combinations will the value of ff be correct?
Official PYQ1997DatabasesIntegrity ConstraintsMCQ · 1 mark
Let R(a,b,c)R (a, b, c) and S(d,e,f)S(d, e, f) be two relations in which dd is the foreign key of SS that refers to the primary key of RR. Consider the following four operations RR and SS Insert into RR Insert into SS Delete from RR Delete from SS Which of the following can cause violation of the referential integrity constraint above?
Official PYQ1997DatabasesNormal FormsMCQ · 1 mark
For a database relation R(a,b,c,d)R(a, b, c, d), where the domains a,b,c,da, b, c, d include only atomic values, only the following functional dependencies and those that can be inferred from them hold a→ca \rightarrow c b→db \rightarrow d This relation is
Official PYQ1997Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Each Process Pi,i=1…9P_i, i = 1\ldots 9 is coded as follows repeat P(mutex) {Critical section} V(mutex) forever The code for P10P_{10} is identical except it uses V(mutex) in place of P(mutex). What is the largest number of processes that can be inside the critical section at any moment?
Official PYQ1997Operating SystemDeadlockMCQ · 1 mark
An operating system contains 33 user processes each requiring 22 units of resource RR. The minimum number of units of RR such that no deadlocks will ever arise is
Official PYQ1997Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Which of the following languages over {a,b,c}\left\{a,b,c\right\} is accepted by a deterministic pushdown automata? Note: wRw^R is the string obtained by reversing ′w′'w'.
Official PYQ1997Theory of ComputationUndecidabilityMCQ · 1 mark
Which one of the following is not decidable?
Official PYQ1997Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Which one of the following regular expressions over {0,1}\{0,1\} denotes the set of all strings not containing 100\text{100} as substring?
Official PYQ1997Engineering MathematicsMonoids and GroupsMCQ · 1 mark
The number of equivalence relations of the set {1,2,3,4}\{1,2,3,4\} is
Official PYQ1997Programming and Data StructuresGraphsMCQ · 1 mark
Let GG be the graph with 100100 vertices numbered 11 to 100100. Two vertices ii and jj are adjacent if ∣i−j∣=8\vert i-j \vert =8 or ∣i−j∣=12\vert i-j \vert=12. The number of connected components in GG is
Official PYQ1997Engineering MathematicsPartial Orders and LatticesMCQ · 1 mark
A partial order ≤≤ is defined on the set S={x,a1,a2,…,an,y}S=\left \{ x, a_1, a_2, \ldots, a_n, y \right \} as xx ≤i\leq _{i} aia_{i} for all ii and ai≤ya_{i}\leq y for all ii, where n≥1n ≥ 1. The number of total orders on the set S which contain the partial order ≤≤ is
Official PYQ1997Digital LogicCombinational CircuitsMCQ · 1 mark
Consider a logic circuit shown in figure below. The functions f1,f2 and ff_1, f_2 \text{ and } f (in canonical sum of products form in decimal notation) are : f1(w,x,y,z)=∑8,9,10f_1 (w, x, y, z) = \sum 8, 9, 10 f2(w,x,y,z)=∑7,8,12,13,14,15f_2 (w, x, y, z) = \sum 7, 8, 12, 13, 14, 15 f(w,x,y,z)=∑8,9f (w, x, y, z) = \sum 8, 9 The function f3f_3 is
Official PYQ1997Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
Given (224)r=(13)r\sqrt{(224)_r} =(13)_r. The value of the radix rr is:
Official PYQ1997Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
A micro instruction is to be designed to specify: none or one of the three micro operations of one kind and none or upto six micro operations of another kind The minimum number of bits in the micro-instruction is:
Official PYQ1997Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
Let f(x,y,z)=xˉ+yˉx+xzf(x, y, z)=\bar{x} + \bar{y}x + xz be a switching function. Which one of the following is valid?
Official PYQ1997Compiler DesignRuntime EnvironmentsMCQ · 1 mark
The expression (a∗b)∗c  op…( a * b) * c \; op \dots where ‘op’ is one of ‘++’, ‘∗*’ and ‘↑\uparrow’ (exponentiation) can be evaluated on a CPU with single register without storing the value of (a∗ba * b) if
Official PYQ1997AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Let T(n)T(n) be the function defined by T(1)=1, T(n)=2T(⌊n2⌋)+nT(1) =1, \: T(n) = 2T (\lfloor \frac{n}{2} \rfloor ) + \sqrt{n} for n≥2n \geq 2. Which of the following statements is true?
Official PYQ1997Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
A priority queue QQ is used to implement a stack that stores characters. PUSH (C) is implemented as INSERT (Q,C,K)(Q, C, K) where KK is an appropriate integer key chosen by the implementation. POP is implemented as DELETEMIN(Q)(Q). For a sequence of operations, the keys chosen are in
Official PYQ1997Programming and Data StructuresBinary Search TreesMCQ · 1 mark
A binary search tree contains the value 1,2,3,4,5,6,7,81, 2, 3, 4, 5, 6, 7, 8. The tree is traversed in pre-order and the values are printed out. Which of the following sequences is a valid output?