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 PYQ2016Theory of ComputationTuring MachinesMCQ · 1 mark
Consider the following languages. L1={⟨M⟩∣M takes at least 2016 steps on some input}L_{1} = \left\{\left\langle M \right\rangle \mid M \text{ takes at least 2016 steps on some input} \right\}, L2={⟨M⟩∣M takes at least 2016 steps on all inputs}L_{2} = \left\{\left\langle M \right\rangle \mid M \text{ takes at least 2016 steps on all inputs} \right\} and L3={⟨M⟩∣M accepts ϵ}L_{3} = \left\{\left\langle M \right\rangle \mid M \ \text{accepts }\epsilon\right\}, where …
Official PYQ2016Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider a set UU of 2323 different compounds in a chemistry lab. There is a subset SS of UU of 99 compounds, each of which reacts with exactly 33 compounds of UU. Consider the following statements: Each compound in U \ S reacts with an odd number of compounds. At least one compound in U \ S reacts with an odd number of compounds. Each …
Official PYQ2016Compiler DesignParsing (LL, LR)MCQ · 1 mark
Which one of the following grammars is free from left recursion?
Official PYQ2016Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
For the IEEE 802.11 MAC\text{IEEE 802.11 MAC} protocol for wireless communication, which of the following statements is/are TRUE? At least three non-overlapping channels are available for transmissions. The RTS-CTS mechanism is used for collision detection. Unicast frames are ACKed.
Official PYQ2016Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A file system uses an in-memory cache to cache disk blocks. The miss rate of the cache is shown in the figure. The latency to read a block from the cache is 11 ms and to read a block from the disk is 1010 ms. Assume that the cost of checking whether a block exists in the cache is negligible. Available cache sizes are in multiples of 1010 MB. The …
Official PYQ2016Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the following two statements: If all states of an NFA are accepting states then the language accepted by the NFA is Σ∗\Sigma_{}^{*}. There exists a regular language AA such that for all languages BB, A∩BA \cap B is regular. Which one of the following is CORRECT?
Official PYQ2016DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider the following database schedule with two transactions T1T_{1} and T2T_{2}. S=r2(X);r1(X);r2(Y);w1(X);r1(Y);w2(X);a1;a2S= r_{2}\left(X\right); r_{1}\left(X\right); r_{2} \left(Y\right); w_{1} \left(X\right); r_{1} \left(Y\right); w_{2} \left(X\right); a_{1}; a_{2} Where ri(Z)r_{i} (Z) denotes a read operation by transaction TiT_{i} on a variable ZZ, wi(Z)w_{i}(Z) denotes a write …
Official PYQ2016Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 1 mark
A network has a data transmission bandwidth of 20×10620 \times 10^{6} bits per second. It uses CSMA/CD in the MAC layer. The maximum signal propagation time from one node to another node is 4040 microseconds. The minimum size of a frame in the network is __________ bytes.
Official PYQ2016Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The value of the expression 1399(mod17)13^{99}\pmod{17} in the range 00 to 1616, is ________.
Official PYQ2016AlgorithmsAlgorithm Design: Dynamic ProgrammingNAT · 1 mark
Let A1,A2,A3A_{1}, A_{2}, A_{3} and A4A_{4} be four matrices of dimensions 10×5,5×20,20×1010 \times 5, 5 \times 20, 20 \times 10 and 10×510 \times 5, respectively. The minimum number of scalar multiplications required to find the product A1A2A3A4A_{1}A_{2}A_{3}A_{4} using the basic matrix multiplication method is _________.
Official PYQ2016Programming and Data StructuresBinary Search TreesNAT · 1 mark
The number of ways in which the numbers 1,2,3,4,5,6,71, 2, 3, 4, 5, 6, 7 can be inserted in an empty binary search tree, such that the resulting tree has height 66, is _________. Note: The height of a tree with a single node is 00.
Official PYQ2016Programming and Data StructuresBinary HeapsNAT · 1 mark
A complete binary min-heap is made by including each integer in [1,1023][1, 1023] exactly once. The depth of a node in the heap is the length of the path from the root of the heap to that node. Thus, the root is at depth 00. The maximum depth at which integer 99 can appear is _________.
Official PYQ2016Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
Consider a 3 GHz3 \ \text{GHz} (gigahertz) processor with a three stage pipeline and stage latencies τ1,τ2\large\tau_1,\tau_2 and τ3\large\tau_3 such that τ1=3τ24=2τ3\large\tau_1 =\dfrac{3 \tau_2}{4}=2\tau_3. If the longest pipeline stage is split into two pipeline stages of equal latency , the new frequency is __________ GHz\text{GHz}, ignoring delays in the …
Official PYQ2016AlgorithmsAsymptotic Worst Case Time and Space ComplexityNAT · 1 mark
The given diagram shows the flowchart for a recursive function A(n)A(n). Assume that all statements, except for the recursive calls, have O(1)O(1) time complexity. If the worst case time complexity of this function is O(nα)O(n^{\alpha}), then the least possible value (accurate up to two decimal positions) of α\alpha is ________. Flow chart for Recursive …
Official PYQ2016Programming and Data StructuresProgramming in CMCQ · 1 mark
The following function computes XYX^{Y} for positive integers XX and YY. int exp (int X, int Y) { int res =1, a = X, b = Y; while (b != 0) { if (b % 2 == 0) {a = a * a; b = b/2; } else {res = res * a; b = b - 1; } } return res; } Which one of the following conditions is TRUE before every iteration of the loop?
Official PYQ2016Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 1 mark
Consider a 128×103128 \times 10^3 bits/second satellite communication link with one way propagation delay of 150150 milliseconds. Selective retransmission (repeat) protocol is used on this link to send data with a frame size of 11 kilobyte. Neglect the transmission time of acknowledgement. The minimum number of bits required for the sequence number field to …
Official PYQ2016Operating SystemConcurrency and SynchronizationNAT · 1 mark
Consider a non-negative counting semaphore SS. The operation P(S)P(S) decrements SS, and V(S)V(S) increments SS. During an execution, 2020 P(S)P(S) operations and 1212 V(S)V(S) operations are issued in some order. The largest initial value of SS for which at least one P(S)P(S) operation will remain blocked is _______
Official PYQ2016Digital LogicComputer ArithmeticNAT · 1 mark
Consider an eight-bit ripple-carry adder for computing the sum of AA and BB, where AA and BB are integers represented in 22's complement form. If the decimal value of AA is one, the decimal value of BB that leads to the longest latency for the sum to stabilize is ___________
Official PYQ2016Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Consider the following types of languages: L1L_{1}: Regular, L2L_{2}: Context-free, L3L_{3}: Recursive, L4L_{4}: Recursively enumerable. Which of the following is/are TRUE ? L3‾∪L4\overline{L_{3}} \cup L_{4} is recursively enumerable. L2‾∪L3\overline{L_{2}} \cup L_{3} is recursive. L1∗∩L2L^{*} _{1} \cap L_{2} is context-free. …
Official PYQ2016Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server, assuming that the host has just been restarted.