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
Which one of the following prefixes exactly represents the range of addresses to ?
You are given a set of distinct integers. A binary search tree is created by inserting all elements of one by one, starting with an empty tree. The tree follows the convention that, at each node, all values stored in the left subtree of the node are smaller than the value stored at the node. You are not aware of the sequence in …
Let be the -state with -transitions shown in the diagram below. Which one of the following regular expressions represents the language accepted by ?
Consider an array that contains positive integers. A subarray of is defined to be a sequence of array locations with consecutive indices. The code snippet given below has been written to compute the length of the longest subarray of that contains at most two distinct integers. The …
Let and be random variables, not necessarily independent, that take real values in the interval . Let and let the mean values of be , respectively. Which one of the following statements is TRUE?
The relation schema, Person (pid, city), describes the city of residence for every person uniquely identified by pid. The following relational algebra operators are available: selection, projection, cross product, and rename. To find the list of cities where at least persons reside, using the above operators, the minimum number of cross product …
Consider a multi-threaded program with two threads and . The threads share two semaphores: (initialized to ) and (initialized to ). The threads also share a global variable (initialized to ). The threads execute the code shown below. //code of T 1 wait (s1); x = x+1; print (x); …
Let be an matrix over the set of all real numbers . Let be a matrix obtained from by swapping two rows. Which of the following statements is/are TRUE?
Let and be two stacks. has capacity of elements. has capacity of elements. already has elements: , and , whereas is empty, as shown below. …
Which of the following is/are EQUAL to in radix - (i.e., base - ) notation?
Consider -variable functions expressed in sum-of-minterms form as given below. With respect to the circuit given above, which of the following options is/are CORRECT?
Let be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in has even weight. Which of the following statements is/are TRUE for every such graph ?
Consider a context-free grammar with the following rules. Let . Let denote the number of times occur in , respectively. Which of the following statements is/are TRUE?
Consider a disk with the following specifications: rotation speed of RPM, average seek time of milliseconds, sectors/track, -byte sectors. A file has content stored in sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to decimal places) to read the …
Consider a connection operating at a point of time with the congestion window of size (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two (Round Trip Time) are acknowledged correctly, the congestion window size (in ) during the …
Consider an Ethernet segment with a transmission speed of and a maximum segment length of meters. If the speed of propagation of the signal in the medium is , then the minimum frame size (in bits) required for collision detection is ___________.
A functional dependency is termed as a useful functional dependency if and only if it satisfies all the following three conditions: is not the empty set. is not the empty set. Intersection of and is the empty set. For a relation with attributes, the total number of …
A processor with general purpose registers uses a -bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a -bit scalar field. If addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is ___________.
A non-pipelined instruction execution unit operating at takes an average of cycles to execute an instruction of a program . The unit is then redesigned to operate on a -stage pipeline at . Assume that the ideal throughput of the pipelined unit is instruction per cycle. In the execution of …
The number of distinct minimum-weight spanning trees of the following graph is
