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 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
Official PYQ2020Theory of ComputationRegular and Context-free LanguagesMCQ · 2 marks
Consider the following languages. L1={wxyx∣w,x,y∈(0+1)+}L2={xy∣x,y∈(a+b)∗,∣x∣=∣y∣,x≠y}\begin{array}{ll} L_1= \{ wxyx \mid w,x,y \in (0+1)^{+} \} \\ L_2= \{xy \mid x,y \in (a+b)^{*}, \mid x \mid=\mid y \mid, x \neq y \} \end{array} Which one of the following is TRUE?
Official PYQ2020Operating SystemConcurrency and SynchronizationMCQ · 2 marks
Each of a set of nn processes executes the following code using two semaphores aa and bb initialized to 11 and 00, respectively. Assume that count\text{count} is a shared variable initialized to 00 and not used in CODE SECTION P. CODE SECTION P\begin{array}{|c|} \hline \textbf{CODE SECTION P} \\ \hline \end{array} wait(a); count=count+1; if (count==n) …
Official PYQ2020Compiler DesignSyntax-directed TranslationMCQ · 2 marks
Consider the productions A→PQA \rightarrow PQ and A→XYA \rightarrow XY. Each of the five non-terminals A,P,Q,X,A, P, Q, X, and YY has two attributes: ss is a synthesized attribute, and ii is an inherited attribute. Consider the following rules. Rule 1:P.i=A.i+2, Q.i=P.i+A.i,1: P . i = A.i + 2, \: Q.i = P. i + A.i, and A.s=P.s+Q.sA.s = P.s +Q. s Rule 2:X.i=A.i+Y.s2: X.i = A.i + Y.s and …
Official PYQ2020Operating SystemI/O SchedulingMCQ · 2 marks
Consider the following five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time. (P,155),(Q,85),(R,110),(S,30),(T,115)(P, 155), (Q,85), (R,110),(S, 30), (T,115) Assume the head is positioned at cylinder 100100. The scheduler follows Shortest Seek Time First scheduling to service the requests. Which one of the following …
Official PYQ2020DatabasesNormal FormsMCQ · 2 marks
Consider a relational table RR that is in 3NF3NF, but not in BCNF. Which one of the following statements is TRUE?
Official PYQ2020Engineering MathematicsPropositional and First Order LogicMCQ · 2 marks
Which one of the following predicate formulae is NOT logically valid? Note that WW is a predicate formula without any free occurrence of xx.