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 PYQ2020Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process’s memory requirement. Hence, a new hole of smaller size will be created if allocation is made in any of the existing holes. Which one of the following statement is TRUE?
Official PYQ2020Operating SystemCPU SchedulingMCQ · 1 mark
Consider the following statements about process state transitions for a system using preemptive scheduling. A running process can move to ready state. A ready process can move to running state. A blocked process can move to running state. A blocked process can move to ready state. Which of the above statements are TRUE?
Official PYQ2020DatabasesTuple Calculus and SQLMCQ · 1 mark
Consider a relational database containing the following schemas. …
Official PYQ2020DatabasesER-modelMCQ · 1 mark
Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?
Official PYQ2020Programming and Data StructuresLinked ListsMCQ · 1 mark
What is the worst case time complexity of inserting nn elements into an empty linked list, if the linked list needs to be maintained in sorted order?
Official PYQ2020Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
Let R\mathcal{R} be the set of all binary relations on the set {1,2,3}\{1,2,3\}. Suppose a relation is chosen from R\mathcal{R} at random. The probability that the chosen relation is reflexive (round off to 33 decimal places) is ______.
Official PYQ2020Engineering MathematicsMonoids and GroupsNAT · 1 mark
Let GG be a group of 3535 elements. Then the largest possible size of a subgroup of GG other than GG itself is _______.
Official PYQ2020Digital LogicCombinational CircuitsNAT · 1 mark
A multiplexer is placed between a group of 3232 registers and an accumulator to regulate data movement such that at any given point in time the content of only one register will move to the accumulator. The number of select lines needed for the multiplexer is ______.
Official PYQ2020Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Consider the following statements about the functionality of an IP\textsf{IP} based router. A router does not modify the IP\textsf{IP} packets during forwarding. It is not necessary for a router to implement any routing protocol. A router should reassemble IP\textsf{IP} fragments if the MTU\textsf{MTU} of the outgoing link is larger than the size of …
Official PYQ2020Digital LogicCombinational CircuitsNAT · 1 mark
If there are mm input lines and nn output lines for a decoder that is used to uniquely address a byte addressable 11 KB RAM, then the minimum value of m+nm+n is ________ .
Official PYQ2020Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A direct mapped cache memory of 11 MB has a block size of 256256 bytes. The cache has an access time of 33 ns and a hit rate of 94%94 \%. During a cache miss, it takes 220 ns to bring the first word of a block from the main memory, while each subsequent word takes 55 ns. The word size is 6464 bits. The average memory access time in ns (round …
Official PYQ2020AlgorithmsSearching, Sorting, HashingNAT · 1 mark
Consider a double hashing scheme in which the primary hash function is h1(k)=k mod 23h_1(k)= k \text{ mod } 23, and the secondary hash function is h2(k)=1+(k mod 19)h_2(k)=1+(k \text{ mod } 19). Assume that the table size is 2323. Then the address returned by probe 11 in the probe sequence (assume that the probe sequence begins at probe 00) for key value k=90k=90 …
Official PYQ2020Compiler DesignParsing (LL, LR)NAT · 1 mark
Consider the following grammar. S→aSB∣dS \rightarrow aSB \mid d B→bB \rightarrow b The number of reduction steps taken by a bottom-up parser while accepting the string aaadbbbaaadbbb is ___________.
Official PYQ2020Programming and Data StructuresProgramming in CNAT · 1 mark
Consider the following C program. #include <stdio.h> int main () { int a[4] [5] = {{1, 2, 3, 4, 5}, {6, 7,8, 9, 10}, {11, 12, 13, 14, 15}, {16, 17,18, 19, 20}}; printf(“%d\n”, *(*(a+**a+2)+3)); return(0); } The output of the program is _______.
Official PYQ2020Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailNAT · 1 mark
Assume that you have made a request for a web page through your web browser to a web server. Initially the browser cache is empty. Further, the browser is configured to send HTTP\textsf{HTTP} requests in non-persistent mode. The web page contains text and five very small images.The minimum number of TCP\textsf{TCP} connections required to display the web …
Official PYQ2020Digital LogicBoolean AlgebraMCQ · 2 marks
Consider the Boolean function z(a,b,c)z(a,b,c). Which one of the following minterm lists represents the circuit given above?
Official PYQ2020Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 2 marks
Consider three registers R1R1, R2R2, and R3R3 that store numbers in IEEE-754\textsf{IEEE-754} single precision floating point format. Assume that R1R1 and R2R2 contain the values (in hexadecimal notation) 0x42200000\textsf{0x42200000} and 0xC1200000,\textsf{0xC1200000}, respectively. If R3=R1R2R3=\frac{R1}{R2}, what is the value stored in R3R3?
Official PYQ2020Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 2 marks
Let AA and BB be two n×nn \times n matrices over real numbers. Let rank(MM) and det(M)\text{det}(M) denote the rank and determinant of a matrix MM, respectively. Consider the following statements. rank(AB)=rank (A)rank (B)\text{rank}(AB) = \text{rank }(A) \text{rank }(B) det(AB)=det(A)det(B)\text{det}(AB) = \text{det}(A) \text{det}(B) …
Official PYQ2020Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 2 marks
A computer system with a word length of 3232 bits has a 1616 MB byte- addressable main memory and a 6464 KB, 44-way set associative cache memory with a block size of 256256 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1=0x42C8A4A1= \textsf{0x42C8A4}, A2=0x546888A2= \textsf{0x546888}, A3=0x6A289CA3= \textsf{0x6A289C}, …
Official PYQ2020AlgorithmsMinimum Spanning TreesMCQ · 2 marks
Let G=(V,E)G = (V, E) be a weighted undirected graph and let TT be a Minimum Spanning Tree (MST) of GG maintained using adjacency lists. Suppose a new weighed edge (u,v)∈V×V(u, v) \in V \times V is added to GG. The worst case time complexity of determining if TT is still an MST of the resultant graph is