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 number of onto functions (surjective functions) from set to set is ______.
The secant method is used to find the root of an equation . It is started from two distinct estimates and for the root. It is an iterative procedure involving linear interpolation to a root. The iteration stops if is very small and then is the solution. The procedure is given below. Observe that there is an …
Consider the C program below #include <stdio.h> int *A, stkTop; int stkFunc (int opcode, int val) { static int size=0, stkTop=0; switch (opcode) { case -1: size = val; break; case 0: if (stkTop < size ) A[stkTop++]=val; break; default: if (stkTop) return A[--stkTop]; } return -1; } int main() { int B[20]; A=B; stkTop = -1; stkFunc (-1, 10); stkFunc …
Given below are some algorithms, and some algorithm design paradigms. …
The number of min-terms after minimizing the following Boolean expression is _______.
Consider the alphabet , the null/empty string and the set of strings generated by the corresponding non-terminals of a regular grammar. are related as follows. Which one of the following …
Assume that the bandwidth for a connection is bits/sec. Let be the value of RTT in milliseconds (rounded off to the nearest integer) after which the window scale option is needed. Let be the maximum possible window size with window scale option. Then the values of and are
Which one of the following hash functions on integers will distribute keys most uniformly over buckets numbered to for ranging from to ?
Consider two relations with the tuples and . Assume that is the full natural outer join of and . Consider the following tuples of the form Which one of the …
A Young tableau is a array of integers increasing from left to right and from top to bottom. Any unfilled entries are marked with , and hence there cannot be any entry to the right of, or below a . The following Young tableau consists of unique entries. …
Consider memory partitions of sizes , , , , and , where refers to . These partitions need to be allotted to four processes of sizes , , …
Consider the intermediate code given below. (1) i=1 (2) j=1 (3) t1 = 5 * i (4) t2 = t1 + j (5) t3 = 4 * t2 (6) t4 = t3 (7) a[t4] = -1 (8) j = j + 1 (9) if j <= 5 goto (3) (10) i = i +1 (11) if i < 5 goto (2) The number of nodes and edges in control-flow-graph constructed for the above code, respectively, are
A graph is self-complementary if it is isomorphic to its complement. For all self-complementary graphs on vertices, is
Perform the following operations on the matrix Add the third row to the second row Subtract the third column from the first column. The determinant of the resultant matrix is _____.
Let and denote the area of region bounded by and the X-axis, when varies from to . Which of the following statements is/are TRUE? is continuous in is not bounded in is nonzero and finite
A computer system implements a virtual address, page size of , and a translation look-aside buffer organized into sets each having ways. Assume that the tag does not store any process id. The minimum length of the tag in bits is ______.
A system has identical resources and processes competing for them. Each process can request at most resources. Which one of the following values of could lead to a deadlock?
Assume that for a certain processor, a read request takes on a cache miss and on a cache hit. Suppose while running a program, it was observed that of the processor's read requests result in a cache hit. The average read access time in nanoseconds is ______.
An unordered list contains distinct elements. The number of comparisons to find an element in this list that is neither maximum nor minimum is
Consider the following statements. The complement of every Turing decidable language is Turing decidable There exists some language which is in NP but is not Turing decidable If L is a language in NP, L is Turing decidable Which of the above statements is/are true?
