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
The least number of temporary variables required to create a three-address code in static single assignment form for the expression is__________________.
Let G be a connected planar graph with 10 vertices. If the number of edges on each face is three, then the number of edges in G is_______________.
Suppose that the stop-and-wait protocol is used on a link with a bit rate of per second and propagation delay. Assume that the transmission time for the acknowledgment and the processing time at nodes are negligible. Then the minimum frame size in bytes to achieve a link utilization of at least …
Consider the DFAs and given above. The number of states in a minimal DFA that accept the language is_____________.
Consider the NPDA , where (as per usual convention) is the set of states, is the input alphabet, is the stack alphabet, is …
A variable is said to be live at a statement in a program if the following three conditions hold simultaneously: There exists a statement that uses There is a path from to in the flow graph corresponding to the program The path has no intervening assignment to including at and The …
Let a represent the number of bit strings of length n containing two consecutive s. What is the recurrence relation for ?
Consider a disk pack with a seek time of milliseconds and rotational speed of rotations per minute (RPM). It has sectors per track and each sector can store bytes of data. Consider a file stored in the disk. The file contains sectors. Assume that every sector access necessitates a seek, and the average rotational …
Consider a main memory with five-page frames and the following sequence of page references: . Which one of the following is true with respect to page replacement policies First In First Out (FIFO) and Least Recently Used (LRU)?
Let be a simple undirected graph, and be a particular vertex in it called the source. For , let denote the shortest distance in from to . A breadth first search (BFS) is performed starting at . Let be the resultant BFS tree. If is an edge of that is not in , then which …
Consider a uniprocessor system executing three tasks and each of which is composed of an infinite sequence of jobs (or instances) which arrive periodically at intervals of and milliseconds, respectively. The priority of each task is the inverse of its period, and the available tasks are scheduled in order of …
Compute the value of:
Consider an Entity-Relationship model in which entity sets and are connected by an relationship . and are connected by a ( on the side of and on the side of ) relationship . has two-singled attributes and …
The graph shown below has edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight and contains the edges: . The edge weights of only those edges which are in the MST are given in the figure shown below. The minimum possible sum of weights of all edges of this …
Consider the following C program segment. while (first <= last) { if (array[middle] < search) first = middle + 1; else if (array[middle] == search) found = TRUE; else last = middle - 1; middle = (first + last)/2; } if (first > last) notpresent = TRUE; The cyclomatic complexity of the program segment is_______________.
An algorithm performs find operations , insert operations, delete operations, and decrease-key operations on a set of data items with keys drawn from a linearly ordered set . For a delete operation, a pointer is provided to the record that must be deleted . For the …
Consider the operations and Which one of the following is correct?
Consider a non-pipelined processor with a clock rate of gigahertz and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to gigahertz. Assume that there are no stalls in the pipeline. The speedup achieved in this …
A positive edge-triggered flip-flop is connected to a positive edge-triggered flip-flop as follows. The output of the flip-flop is connected to both the and inputs of the flip-flop, while the output of the flip-flop is connected to the input of the flip-flop. Initially, the output of the …
Consider the following matrix where two elements are unknown and are marked by and . The eigenvalues of this matrix are and What are the values of and ?
