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.

6 on this page
Official PYQ2024Engineering MathematicsGraphs: Connectivity, Matching, ColouringNAT · 2 marks
The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. The chromatic number of the following graph is __________.
Official PYQ2024Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
A processor uses a 3232-bit instruction format and supports byte-addressable memory access. The ISA\text{ISA} of the processor has 150150 distinct instructions. The instructions are equally divided into two types, namely R\text{R}-type and I\text{I}-type, whose formats are shown below. R - type Instruction Format: \begin{array}{|l|l|l|l|l|} \hline …
Official PYQ2024Theory of ComputationRegular Expressions and Finite AutomataNAT · 2 marks
Let L1L_{1} be the language represented by the regular expression b∗ab∗(ab∗ab∗)∗b^{*} a b^{*}\left(a b^{*} a b^{*}\right)^{*} and L2={w∈(a+b)∗∣∣w∣≤4}L_{2}=\left\{w \in(a+b)^{*}|| w \mid \leq 4\right\}, where ∣w∣|w| denotes the length of string ww. The number of strings in L2L_{2} which are also in L1L_{1} is _________.
Official PYQ2024Engineering MathematicsMonoids and GroupsNAT · 2 marks
Let ZnZ_{n} be the group of integers {0,1,2,…,n−1}\{0,1,2, \ldots, n-1\} with addition modulo nn as the group operation. The number of elements in the group Z2×Z3×Z4Z_{2} \times Z_{3} \times Z_{4} that are their own inverses is ___________.
Official PYQ2024Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider a 3232-bit system with 4 KB4 \mathrm{~KB} page size and page table entries of size 44 bytes each. Assume 1 KB=2101 \mathrm{~KB}=2^{10} bytes. The OS uses a 22-level page table for memory management, with the page table containing an outer page directory and an inner page table. The OS\text{OS} allocates a page for the outer page directory upon …
Official PYQ2024Compiler DesignParsing (LL, LR)NAT · 2 marks
Consider the following augmented grammar, which is to be parsed with a SLR\text{SLR} parser. The set of terminals is {a,b,c,d,#,@}\{a, b, c, d, \#, @\} S′→SS→SS∣Aa∣bAc∣Bc∣bBaA→d#B→@\begin{array}{l} S^{\prime} \rightarrow S \\ S \rightarrow S S|A a| b A c|B c| b B a \\ A \rightarrow d \# \\ B \rightarrow @ \end{array} Let …