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 PYQ2016Compiler DesignSyntax-directed TranslationMCQ · 1 mark
Consider the following Syntax Directed Translation Scheme (SDTS)( SDTS ), with non-terminals {S,A}\{S,A \} and terminals {a,b}\{a,b \}. S→aA{print 1}S \to aA \quad \{\text{print }1\} S→a{print 2}S \to a \quad \{\text{print }2\} A→Sb{print 3}A \to Sb \quad \{\text{print }3\} Using the above SDTSSDTS , the output printed by a bottom-up parser, for the input aabaab is:
Official PYQ2016Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeNAT · 1 mark
The size of the data count register of a DMA\text{DMA} controller is 16  bits16\;\text{bits}. The processor needs to transfer a file of 29,15429,154 kilobytes from disk to main memory. The memory is byte addressable. The minimum number of times the DMA\text{DMA} controller needs to get the control of the system bus from the processor to transfer the file from …
Official PYQ2016Compiler DesignParsing (LL, LR)NAT · 1 mark
The attribute of three arithmetic operators in some programming language are given below. …
Official PYQ2016Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 1 mark
A sender uses the Stop-and-Wait ARQ\text{ARQ} protocol for reliable transmission of frames. Frames are of size 10001000 bytes and the transmission rate at the sender is 80  Kbps(1Kbps=1000   bits/second).80\;\textsf{Kbps} (1\textsf{Kbps} = 1000\;\text{ bits/second}). Size of an acknowledgment is 100100 bytes and the transmission rate at the receiver is 8  Kbps.8\;\textsf{Kbps.} The one-way …
Official PYQ2016Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Consider that BB wants to send a message mm that is digitally signed to AA. Let the pair of private and public keys for AA and BB be denoted by Kx−{K_{x}}^- and Kx+{K_{x}}^+ for x=A,Bx=A, B, respectively. Let Kx(m)K_{x}(m) represent the operation of encrypting mm with a key KxK_{x} and H(m)H(m) represent the message digest. Which one of …
Official PYQ2016Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The coefficient of x12x^{12} in (x3+x4+x5+x6+… )3\left(x^{3}+x^{4}+x^{5}+x^{6}+\dots \right)^{3} is ___________.
Official PYQ2016Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
The stage delays in a 44-stage pipeline are 800,500,400800, 500, 400 and 300300 picoseconds. The first stage (with delay 800800 picoseconds) is replaced with a functionality equivalent design involving two stages with respective delays 600600 and 350350 picoseconds. The throughput increase of the pipeline is ___________ percent.
Official PYQ2016Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
Consider a computer system with 4040-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires 4848 bits, then the size of the per-process page table is __________ megabytes.
Official PYQ2016Digital LogicComputer ArithmeticMCQ · 1 mark
Consider a carry look ahead adder for adding two nn-bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is
Official PYQ2016AlgorithmsMinimum Spanning TreesMCQ · 1 mark
Let GG be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements is/are TRUE? PP: Minimum spanning tree of GG does not change. QQ: Shortest path between any pair of vertices does not change.
Official PYQ2016Compiler DesignData Flow Analyses: Constant Propagation, Liveness, CSENAT · 1 mark
Consider the following code segment. x = u - t; y = x * v; x = y + w; y = t - z; y = x * y; The minimum number of total variables required to convert the above code segment to static single assignment form is __________.
Official PYQ2016Programming and Data StructuresArrays, Stacks and QueuesNAT · 1 mark
Let QQ denote a queue containing sixteen numbers and SS be an empty stack. Head(Q)Head(Q) returns the element at the head of the queue QQ without removing it from QQ. Similarly Top(S)Top(S) returns the element at the top of SS without removing it from SS. Consider the algorithm given below. while Q is not Empty do if S is Empty OR Top(S) ≤ Head …
Official PYQ2016Digital LogicSequential CircuitsNAT · 1 mark
We want to design a synchronous counter that counts the sequence 0−1−0−2−0−30-1-0-2-0-3 and then repeats. The minimum number of J-K\text{J-K} flip-flops required to implement this counter is _____________.
Official PYQ2016AlgorithmsGraph Traversals (BFS, DFS)NAT · 1 mark
Consider the following directed graph: The number of different topological orderings of the vertices of the graph is _____________.
Official PYQ2016Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT (nn refers to the number of items in the queue) ?
Official PYQ2016Engineering MathematicsPropositional and First Order LogicNAT · 1 mark
Let p,q,r,sp, q, r, s represents the following propositions. p:x∈{8,9,10,11,12}p:x\in\left\{8, 9, 10, 11, 12\right\} q:q: xx is a composite number. r:r: xx is a perfect square. s:s: xx is a prime number. The integer x≥2x\geq2 which satisfies ¬((p⇒q)∧(¬r∨¬s))\neg\left(\left(p\Rightarrow q\right) \wedge \left(\neg r \vee \neg s\right)\right) is ____________.
Official PYQ2016Engineering MathematicsProbability: Random Variables and DistributionsNAT · 1 mark
A probability density function on the interval [a,1][a, 1] is given by 1/x21/x^{2} and outside this interval the value of the function is zero. The value of aa is _________.
Official PYQ2016AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
The worst case running times of Insertion sort , Merge sort and Quick sort, respectively are:
Official PYQ2016Operating SystemCPU SchedulingMCQ · 1 mark
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Official PYQ2016Theory of ComputationUndecidabilityMCQ · 1 mark
Which of the following decision problems are undecidable? Given NFAs N1N_1 and N2N_2 , is L(N1)∩L(N2)=ΦL(N_1) \cap L(N_2) = \Phi Given a CFG G=(N,Σ,P,S)G = (N,\Sigma,P,S) and a string x∈Σ∗x \in \Sigma^{*}, does x∈L(G)x \in L(G)} ? Given CFGs G1G_1 and G2G_2, is L(G1)=L(G2)L (G_1) = L(G_2)? Given a TM MM, is L(M)=ΦL(M)=\Phi ?