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 processors and executing the same instruction set. Assume that under identical conditions, for the same input, a program running on takes less time but incurs more CPI (clock cycles per instruction) as compared to the program running on . If the clock frequency of is …
Given the following schema: employees(emp-id, first-name, last-name, hire-date, dept-id, salary) departments(dept-id, dept-name, manager-id, location-id) You want to display the last names and hire dates of all latest hires in their respective departments in the location You issue the following query: SQL>SELECT last-name, hire-date …
Which one of the following propositional logic formulas is TRUE when exactly two of and are TRUE?
An ordered tuple with is called graphic if there exists a simple undirected graph with vertices having degrees respectively. Which one of the following -tuples is NOT graphic?
Consider an undirected graph where self-loops are not allowed. The vertex set of is . There is an edge between and if and . The number of edges in this graph is______.
Let ܵ denote the set of all functions . Denote by the number of functions from S to the set . The value of is _______.
A pennant is a sequence of numbers, each number being or . An pennant is a sequence of numbers with sum equal to . For example, is a pennant. The set of all possible pennants is , the set of all possible pennants is and the set of all pennants is . …
Four fair six-sided dice are rolled. The probability that the sum of the results being is . The value of is _______
A function is continuous in the interval . It is known that and . Which one of the following statements must be true?
The function satisfies the following equation: The value of is______.
Consider the multiplexer with two select lines and given below The minimal sum-of-products form of the Boolean expression for the output of the multiplexer is
An access sequence of cache block addresses is of length and contains n unique block addresses. The number of unique block addresses between two consecutive accesses to the same block address is bounded above by . What is the miss ratio if the access sequence is passed through a cache of associativity exercising least-recently-used …
Consider a -stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is executing on this -stage pipeline, the speedup achieved with respect to non-pipelined execution if % of the instructions incur pipeline stall cycles is ____________
Consider the following pseudo code. What is the total number of multiplications to be performed? D = 2 for i = 1 to n do for j = i to n do for k = j + 1 to n do D = D * 3
Consider the following C function in which size is the number of elements in the array E: int MyX(int *E, unsigned int size) { int Y = 0; int Z; int i, j, k; for(i = 0; i< size; i++) Y = Y + E[i]; for(i=0; i < size; i++) for(j = i; j < size; j++) { Z = 0; for(k = i; k <= j; k++) Z = Z + E[k]; if(Z > Y) Y = Z; } return Y; } The value returned …
The minimum number of comparisons required to find the minimum and the maximum of numbers is ________
Consider a hash table with slots. The hash function is . The collisions are resolved by chaining. The following keys are inserted in the order: . The maximum, minimum, and average chain lengths in the hash table, respectively, are
Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correct Venn diagram of the complexity classes P, NP and NP Complete (NPC)?
There are bags labeled to . All the coins in a given bag have the same weight. Some bags have coins of weight gm, others have coins of weight gm. I pick coins respectively from bags to Their total weight comes out to gm. Then the product of the labels of the bags having gm coins is …
Which of the regular expressions given below represent the following DFA?
