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 two hosts and connected through a router . The maximum transfer unit value of the link between and is bytes, and between and is bytes. A segment of size bytes was transferred from to through , with identification value as …
Consider the following pseudocode, where is a semaphore initialized to in line and is a shared variable initialized to in line . Assume that the increment operation in line is atomic. 1. int counter = 0; 2. Semaphore S = init(5); 3. void parop(void) 4. { 5. wait(S); 6. …
Consider a hashing approach for -bit integer keys: There is a main hash table of size . The least significant bits of a key is used to index into the main hash table. Initially, the main hash table entries are empty. Thereafter, when more keys are hashed into it, to resolve collisions, the set of all keys corresponding to …
Consider the following function: int SimpleFunction(int Y[], int n, int x) { int total = Y[0], loopIndex; for (loopIndex=1; loopIndex<=n-1; loopIndex++) total=x*total +Y[loopIndex]; return total; } Let be an array of elements with , for all such that . The value returned …
Consider the sliding window flow-control protocol operating between a sender and a receiver over a full-duplex error-free link. Assume the following: The time taken for processing the data frame by the receiver is negligible. The time taken for processing the acknowledgement frame by the sender is negligible. The sender has infinite number of frames …
In a pushdown automaton , a transition of the form, where , , and , represents Consider the following pushdown automaton over the input alphabet and stack alphabet …
Consider the following code segment: a = b + c; e = a + 1; d = b + c; f = d + 1; g = e + f; In a compiler, this code segment is represented internally as a directed acyclic graph . The number of nodes in the is _____________
Consider the following matrix.The largest eigenvalue of the above matrix is __________.
A five-stage pipeline has stage delays of and nanoseconds. The registers that are used between the pipeline stages have a delay of nanoseconds each. The total time to execute independent instructions on this pipeline, assuming there are no pipeline stalls, is _______ nanoseconds.
Consider the following instruction sequence where registers and are general purpose and denotes the content at the memory location …
A sender transmits a signal, which can be one of the two kinds: and with probabilities and respectively, to a receiver . In the graph below, the weight of edge is the probability of receiving when is transmitted, where . For example, the probability that the …
Gauri said that she can play the keyboard __________ her sister.
A transparent square sheet shown above is folded along the dotted line. The folded sheet will look like ___________.
If is the angle, in degrees, between the longest diagonal of the cube and any one of the edges of the cube, then,
_______ Which one of the following options maintains a similar logical relation in the above?
Listening to music during exercise improves performance and reduces discomfort. Scientists researched whether listening to music while studying can help students learn better and the results were inconclusive. Students who needed external stimulation for studying fared worse while students who did not need any external stimulation benefited from music. Which …
If , then the value of is:
A jigsaw puzzle has pieces. One of the pieces is shown above. Which one of the given options for the missing piece when assembled will form a rectangle? The piece can be moved, rotated or flipped to assemble with the above piece.
The number of students in three classes is in the ratio . If students are added to each class, the ratio changes to . The total number of students in all the three classes in the beginning was:
The number of units of a product sold in three different years and the respective net profits are presented in the figure above. The cost/unit in Year was ₹, which was half the cost/unit in Year . The cost/unit in Year was one-third of the cost/unit in Year . Taxes were paid on the selling price at , , and …
