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 PYQ2024Digital LogicNumber Representations (Fixed and Floating Point)MSQ · 2 marks
Which of the following is/are EQUAL to 224224 in radix - 55 (i.e., base - 55) notation?
Official PYQ2024Digital LogicMinimization (K-Maps etc.)MSQ · 2 marks
Consider 44-variable functions f1,f2,f3,f4f 1, f 2, f 3, f 4 expressed in sum-of-minterms form as given below. f1=∑(0,2,3,5,7,8,11,13)f2=∑(1,3,5,7,11,13,15)f3=∑(0,1,4,11)f4=∑(0,2,6,13)\begin{array}{l} f 1=\sum(0,2,3,5,7,8,11,13) \\ f 2=\sum(1,3,5,7,11,13,15) \\ f 3=\sum(0,1,4,11) \\ f 4=\sum(0,2,6,13) \end{array} With respect to the circuit given above, which of the following options is/are CORRECT?
Official PYQ2024Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 2 marks
Let G\text{G} be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in G\text{G} has even weight. Which of the following statements is/are TRUE for every such graph G\text{G}?
Official PYQ2024Compiler DesignParsing (LL, LR)MSQ · 2 marks
​​​​Consider a context-free grammar G\text{G} with the following 33 rules. S→aS,S→aSbS,S→cS \rightarrow a S, S \rightarrow a S b S , S \rightarrow c Let w∈L(G)w \in L(G). Let na(w),nb(w),nc(w)n_{a}(w), n_{b}(w), n_{c}(w) denote the number of times a,b,ca, b, c occur in ww, respectively. Which of the following statements is/are TRUE?
Official PYQ2024Operating SystemI/O SchedulingNAT · 2 marks
Consider a disk with the following specifications: rotation speed of 60006000 RPM, average seek time of 55 milliseconds, 500500 sectors/track, 512512-byte sectors. A file has content stored in 30003000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to 22 decimal places) to read the …
Official PYQ2024Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider a TCP\text{TCP} connection operating at a point of time with the congestion window of size 1212 MSS\text{MSS} (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two RTTs\text{RTTs} (Round Trip Time) are acknowledged correctly, the congestion window size (in MSSMSS) during the …
Official PYQ2024Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
Consider an Ethernet segment with a transmission speed of 108bits/sec10^{8} \mathrm{bits} / \mathrm{sec} and a maximum segment length of 500500 meters. If the speed of propagation of the signal in the medium is 2×108 meters/sec2 \times 10^{8} \mathrm{~meters} / \mathrm{sec}, then the minimum frame size (in bits) required for collision detection is ___________.
Official PYQ2024DatabasesNormal FormsNAT · 2 marks
A functional dependency F:X→YF: X \rightarrow Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions: X\text{X} is not the empty set. Y\text{Y} is not the empty set. Intersection of X\text{X} and Y\text{Y} is the empty set. For a relation R\text{R} with 44 attributes, the total number of …
Official PYQ2024Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
A processor with 1616 general purpose registers uses a 3232-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a 1616-bit scalar field. If 88 addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is ___________.
Official PYQ2024Computer Organization and ArchitectureInstruction PipeliningNAT · 2 marks
A non-pipelined instruction execution unit operating at 2GHz2 \mathrm{GHz} takes an average of 66 cycles to execute an instruction of a program P\text{P}. The unit is then redesigned to operate on a 55 -stage pipeline at 2GHz2 \mathrm{GHz}. Assume that the ideal throughput of the pipelined unit is 11 instruction per cycle. In the execution of …
Official PYQ2024AlgorithmsMinimum Spanning TreesNAT · 2 marks
The number of distinct minimum-weight spanning trees of the following graph is
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 …
Official PYQ2023Compiler DesignLexical AnalysisMCQ · 1 mark
Consider the following statements regarding the front-end and back-end of a compiler. S1: The front-end includes phases that are independent of the target hardware. S2: The back-end includes phases that are specific to the target hardware. S3: The back-end includes phases that are specific to the programming language used in the source code. Identify the …
Official PYQ2023Programming and Data StructuresBinary HeapsMCQ · 1 mark
Which one of the following sequences when stored in an array at locations A[1],…,A[10]A[1], \ldots, A[10] forms a max-heap?
Official PYQ2023Programming and Data StructuresLinked ListsMCQ · 1 mark
Let SLLdel\textsf{SLLdel} be a function that deletes a node in a singly-linked list given a pointer to the node and a pointer to the head of the list. Similarly, let DLLdel\textsf{DLLdel} be another function that deletes a node in a doubly-linked list given a pointer to the node and a pointer to the head of the list. Let nn denote the number of nodes in each …