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 PYQ2019DatabasesNormal FormsMCQ · 2 marks
Let the set of functional dependencies F={QR→S, R→P, S→Q}F=\{QR \rightarrow S, \: R \rightarrow P, \: S \rightarrow Q \} hold on a relation schema X=(PQRS)X=(PQRS). XX is not in BCNF. Suppose XX is decomposed into two schemas YY and ZZ, where Y=(PR)Y=(PR) and Z=(QRS)Z=(QRS). Consider the two statements given below. Both YY and ZZ are in BCNF Decomposition of …
Official PYQ2019Operating SystemMemory Management and Virtual MemoryMCQ · 2 marks
Assume that in a certain computer, the virtual addresses are 6464 bits long and the physical addresses are 4848 bits long. The memory is word addressible. The page size is 88 kB and the word size is 44 bytes. The Translation Look-aside Buffer (TLB) in the address translation path has 128128 valid entries. At most how many distinct virtual …
Official PYQ2019Theory of ComputationRegular and Context-free LanguagesMCQ · 2 marks
Consider the following sets: S1: Set of all recursively enumerable languages over the alphabet {0,1}\{0, 1\} S2: Set of all syntactically valid C programs S3: Set of all languages over the alphabet {0,1}\{0,1\} S4: Set of all non-regular languages over the alphabet {0,1}\{ 0,1 \} Which of the above sets are uncountable?
Official PYQ2019Engineering MathematicsPropositional and First Order LogicMCQ · 2 marks
Consider the first order predicate formula φ\varphi: ∀x[(∀z z∣x⇒((z=x)∨(z=1)))→∃w(w>x)∧(∀z z∣w⇒((w=z)∨(z=1)))]\forall x [ ( \forall z \: z | x \Rightarrow (( z=x) \vee (z=1))) \rightarrow \exists w ( w > x) \wedge (\forall z \: z | w \Rightarrow ((w=z) \vee (z=1)))] Here a∣ba \mid b denotes that ’a divides b’’a \text{ divides } b’ , where aa and bb are integers. Consider the following sets: …
Official PYQ2019AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 2 marks
There are nn unsorted arrays: A1,A2,…,AnA_1, A_2, \dots, A_n. Assume that nn is odd.Each of A1,A2,…,AnA_1, A_2, \dots, A_n contains nn distinct elements. There are no common elements between any two arrays. The worst-case time complexity of computing the median of the medians of A1,A2,…,AnA_1, A_2, \dots , A_n is
Official PYQ2019Compiler DesignSyntax-directed TranslationMCQ · 2 marks
Consider the following grammar and the semantic actions to support the inherited type declaration attributes. Let X1,X2,X3,X4,X5X_1, X_2, X_3, X_4, X_5, and X6X_6 be the placeholders for the non-terminals D,T,LD, T, L or L1L_1 in the following table: …
Official PYQ2019Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 2 marks
Let GG be any connected, weighted, undirected graph. GG has a unique minimum spanning tree, if no two edges of GG have the same weight. GG has a unique minimum spanning tree, if, for every cut of GG, there is a unique minimum-weight edge crossing the cut. Which of the following statements is/are TRUE?
Official PYQ2019Operating SystemDeadlockMCQ · 2 marks
Consider the following snapshot of a system running nn concurrent processes. Process ii is holding XiX_i instances of a resource RR, 1≤i≤n1 \leq i \leq n. Assume that all instances of RR are currently in use. Further, for all ii, process ii can place a request for at most YiY_i additional instances of RR while holding the XiX_i …
Official PYQ2019Programming and Data StructuresBinary HeapsMCQ · 2 marks
Consider the following statements: The smallest element in a max-heap is always at a leaf node The second largest element in a max-heap is always a child of a root node A max-heap can be constructed from a binary search tree in Θ(n)\Theta(n) time A binary search tree can be constructed from a max-heap in Θ(n)\Theta(n) time Which of the above statements are …
Official PYQ2019Operating SystemCPU SchedulingNAT · 2 marks
Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below: …
Official PYQ2019Compiler DesignParsing (LL, LR)NAT · 2 marks
Consider the augmented grammar given below: S’→SS’ \rightarrow S S→⟨L⟩∣idS \rightarrow \langle L \rangle \mid id L→L,S∣SL \rightarrow L, S \mid S Let I0=CLOSURE({[S’→⋅S]}).I_0 = \text{CLOSURE} (\{[S’ \rightarrow \cdot S ]\}). The number of items in the set GOTO(I0,⟨ )\text{GOTO} (I_0, \langle \: ) is______
Official PYQ2019Operating SystemFile SystemsNAT · 2 marks
The index node (inode) of a Unix -like file system has 1212 direct, one single-indirect and one double-indirect pointers. The disk block size is 44 kB, and the disk block address is 3232-bits long. The maximum possible file size is (rounded off to 11 decimal place) ____ GB
Official PYQ2019Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionNAT · 2 marks
Consider the following matrix: R=[1248139271416641525125]R = \begin{bmatrix} 1 & 2 & 4 & 8 \\ 1 & 3 & 9 & 27 \\ 1 & 4 & 16 & 64 \\ 1 & 5 & 25 & 125 \end{bmatrix} The absolute value of the product of Eigen values of RR is _______
Official PYQ2019Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
A certain processor deploys a single-level cache. The cache block size is 88 words and the word size is 44 bytes. The memory system uses a 6060-MHz clock. To service a cache miss, the memory controller first takes 11 cycle to accept the starting address of the block, it then takes 33 cycles to fetch all the eight words of the block, and finally …
Official PYQ2019Programming and Data StructuresTreesNAT · 2 marks
Let TT be a full binary tree with 88 leaves. (A full binary tree has every level full.) Suppose two leaves aa and bb of TT are chosen uniformly and independently at random. The expected value of the distance between aa and bb in TT (ie., the number of edges in the unique path between aa and bb) is (rounded off to 22 decimal …
Official PYQ2019Engineering MathematicsProbability: Random Variables and DistributionsNAT · 2 marks
Suppose YY is distributed uniformly in the open interval (1,6)(1,6). The probability that the polynomial 3x2+6xY+3Y+63x^2 +6xY+3Y+6 has only real roots is (rounded off to 11 decimal place) _______
Official PYQ2019Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
Consider that 1515 machines need to be connected in a LAN using 88-port Ethernet switches. Assume that these switches do not have any separate uplink ports. The minimum number of switches needed is ______
Official PYQ2019Theory of ComputationRegular Expressions and Finite AutomataNAT · 2 marks
Let Σ\Sigma be the set of all bijections from {1,…,5}\{1, \dots , 5\} to {1,…,5}\{1, \dots , 5 \}, where idid denotes the identity function, i.e. id(j)=j,∀jid(j)=j, \forall j. Let ∘\circ denote composition on functions. For a string x=x1x2…xn∈Σn,n≥0x=x_1 x_2 \dots x_n \in \Sigma^n, n \geq 0, let π(x)=x1∘x2∘⋯∘xn\pi(x)=x_1 \circ x_2 \circ \dots \circ x_n. Consider the language …
Official PYQ2019Digital LogicBoolean AlgebraNAT · 2 marks
What is the minimum number of 22-input NOR gates required to implement a 44 -variable function expressed in sum-of-minterms form as f=Σ(0,2,5,7,8,10,13,15)?f=\Sigma(0,2,5,7, 8, 10, 13, 15)? Assume that all the inputs and their complements are available. Answer: _______
Official PYQ2019DatabasesTuple Calculus and SQLNAT · 2 marks
A relational database contains two tables Student and Performance as shown below: …