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
Consider the following languages. , and , where …
Consider a set of different compounds in a chemistry lab. There is a subset of of compounds, each of which reacts with exactly compounds of . 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 …
Which one of the following grammars is free from left recursion?
For the 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.
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 ms and to read a block from the disk is ms. Assume that the cost of checking whether a block exists in the cache is negligible. Available cache sizes are in multiples of MB. The …
Consider the following two statements: If all states of an NFA are accepting states then the language accepted by the NFA is . There exists a regular language such that for all languages , is regular. Which one of the following is CORRECT?
Consider the following database schedule with two transactions and . Where denotes a read operation by transaction on a variable , denotes a write …
A network has a data transmission bandwidth of bits per second. It uses CSMA/CD in the MAC layer. The maximum signal propagation time from one node to another node is microseconds. The minimum size of a frame in the network is __________ bytes.
The value of the expression in the range to , is ________.
Let and be four matrices of dimensions and , respectively. The minimum number of scalar multiplications required to find the product using the basic matrix multiplication method is _________.
The number of ways in which the numbers can be inserted in an empty binary search tree, such that the resulting tree has height , is _________. Note: The height of a tree with a single node is .
A complete binary min-heap is made by including each integer in 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 . The maximum depth at which integer can appear is _________.
Consider a (gigahertz) processor with a three stage pipeline and stage latencies and such that . If the longest pipeline stage is split into two pipeline stages of equal latency , the new frequency is __________ , ignoring delays in the …
The given diagram shows the flowchart for a recursive function . Assume that all statements, except for the recursive calls, have time complexity. If the worst case time complexity of this function is , then the least possible value (accurate up to two decimal positions) of is ________. Flow chart for Recursive …
The following function computes for positive integers and . 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?
Consider a bits/second satellite communication link with one way propagation delay of milliseconds. Selective retransmission (repeat) protocol is used on this link to send data with a frame size of kilobyte. Neglect the transmission time of acknowledgement. The minimum number of bits required for the sequence number field to …
Consider a non-negative counting semaphore . The operation decrements , and increments . During an execution, operations and operations are issued in some order. The largest initial value of for which at least one operation will remain blocked is _______
Consider an eight-bit ripple-carry adder for computing the sum of and , where and are integers represented in 's complement form. If the decimal value of is one, the decimal value of that leads to the longest latency for the sum to stabilize is ___________
Consider the following types of languages: : Regular, : Context-free, : Recursive, : Recursively enumerable. Which of the following is/are TRUE ? is recursively enumerable. is recursive. is context-free. …
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.
