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 PYQ2014Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 1 mark
In the diagram shown below, L1L1 is an Ethernet LAN and L2L2 is a Token-Ring LAN. An IPIP packet originates from sender SS and traverses to RR, as shown. The links within each ISP\text{ISP} and across the two ISP\text{ISP}s, are all point-to-point optical links. The initial value of the TTL\text{TTL} field is 3232. The maximum possible value …
Official PYQ2014Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Which of the following socket API functions converts an unconnected active TCP socket into a passive socket?
Official PYQ2014Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Which of the following is TRUE about the interior gateway routing protocols −- Routing Information Protocol (RIP)(RIP) and Open Shortest Path First (OSPF)(OSPF)
Official PYQ2014DatabasesIntegrity ConstraintsNAT · 1 mark
Given an instance of the STUDENTS relation as shown as below …
Official PYQ2014DatabasesIntegrity ConstraintsNAT · 1 mark
The maximum number of superkeys for the relation schema R(E,F,G,H)R(E,F,G,H) with EE as the key is _____.
Official PYQ2014Operating SystemFile SystemsNAT · 1 mark
A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is 44 bytes in size. Given a 100×106100 \times 10^6 bytes disk on which the file system is stored and data block size is 10310^3 bytes, the maximum size of a file that can be stored on this disk in units of 10610^6 bytes is _________.
Official PYQ2014Software Engineering (Historical)MCQ · 1 mark
Which one of the following is TRUE?
Official PYQ2014Compiler DesignRuntime EnvironmentsMCQ · 1 mark
Which one of the following is NOT performed during compilation?
Official PYQ2014Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider the grammar defined by the following production rules, with two operators ∗∗ and ++ S → T∗PS\:\to\:T∗P T → U∣T∗UT\:\to\:U\mid T∗U P → Q+P∣QP\:\to\:Q+P\mid Q Q →IdQ\:\to Id U →IdU\:\to Id Which one of the following is TRUE?
Official PYQ2014Theory of ComputationUndecidabilityMCQ · 1 mark
Let A ≤m BA\:\leq_m\:B denotes that language AA is mapping reducible (also known as many-to-one reducible) to language BB. Which one of the following is FALSE?
Official PYQ2014Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
If L1 ={an∣n ≥ 0}L_1\:=\{a^n \mid n\:\geq\:0\} and L2 ={bn∣n ≥ 0}L_2\:= \{b^n \mid n\:\geq\:0\} , consider L1.L2L_1.L_2 is a regular language L1.L2={anbn∣n ≥ 0}L_1.L_2 = \{a^nb^n \mid n\: \geq \:0\} Which one of the following is CORRECT?
Official PYQ2014AlgorithmsGraph Traversals (BFS, DFS)MCQ · 1 mark
Consider the tree arcs of a BFS traversal from a source node WW in an unweighted, connected, undirected graph. The tree TT formed by the tree arcs is a data structure for computing
Official PYQ2014Programming and Data StructuresBinary HeapsMCQ · 1 mark
A priority queue is implemented as a Max-Heap. Initially, it has 55 elements. The level-order traversal of the heap is: 10,8,5,3,210, 8, 5, 3, 2. Two new elements 11 and 77 are inserted into the heap in that order. The level-order traversal of the heap after the insertion of the elements is:
Official PYQ2014Programming and Data StructuresProgramming in CMCQ · 1 mark
Suppose nn and pp are unsigned int variables in a C program. We wish to set pp to nC3^nC_3. If nn is large, which one of the following statements is most likely to set pp correctly?
Official PYQ2014AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Which one of the following correctly determines the solution of the recurrence relation with T(1)=1T(1) = 1? T(n)=2T(n2)+log⁡nT(n)= 2T\left(\frac {n} {2}\right) + \log n
Official PYQ2014AlgorithmsAsymptotic Worst Case Time and Space ComplexityNAT · 1 mark
Consider the function func shown below: int func(int num) { int count = 0; while (num) { count++; num>>= 1; } return (count); } The value returned by func(435435) is ________
Official PYQ2014Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A 44-way set-associative cache memory unit with a capacity of 1616 KB is built using a block size of 88 words. The word length is 3232 bits. The size of the physical address space is 44 GB. The number of bits for the TAG field is ____
Official PYQ2014Digital LogicSequential CircuitsMCQ · 1 mark
Let k=2nk=2^n. A circuit is built by giving the output of an nn-bit binary counter as input to an n-to-2nn\text{-to-}2^n bit decoder. This circuit is equivalent to a
Official PYQ2014Digital LogicNumber Representations (Fixed and Floating Point)NAT · 1 mark
Consider the equation (123)5=(x8)y(123)_5=(x8)_y with xx and yy as unknown. The number of possible solutions is _____ .
Official PYQ2014Digital LogicBoolean AlgebraMCQ · 1 mark
The dual of a Boolean function F(x1,x2,…,xn,+,.,′)F(x_1,x_2,\dots,x_n,+, .,'), written as FDF^D is the same expression as that of FF with ++ and ⋅⋅ swapped. FF is said to be self-dual if F=FDF = F^D. The number of self-dual functions with nn Boolean variables is