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 is TRUE for any simple connected undirected graph with more than vertices?
Consider the following well-formed formulae: Which of the above are equivalent?
The binary operation is defined as follows …
Which one of the following is the most appropriate logical formula to represent the statement? "Gold and silver ornaments are precious". The following notations are used: is a gold ornament is a silver ornament is precious
For the composition table of a cyclic group shown below: …
An unbalanced dice (with faces, numbered from to ) is thrown. The probability that the face value is odd is of the probability that the face value is even. The probability of getting any even numbered face is the same. If the probability that the face is even given that it is greater than is , which one of the …
Consider the binary relation on the set . Which one of the following is TRUE?
What is the chromatic number of an vertex simple connected graph which does not contain any odd length cycle? Assume .
Which one of the following is NOT necessarily a property of a Group?
Consider the following diagram The minimum number of tables needed to represent , , , , is Which of the following is a correct attribute set for one of the tables for the minimum number of tables needed to represent , , , , ?
Consider the following C program that attempts to locate an element in an array using binary search. The program is erroneous. f (int Y[10] , int x) { int i, j, k; i= 0; j = 9; do { k = (i + j) / 2; if( Y[k] < x) i = k;else j = k; } while (Y[k] != x) && (i < j)) ; if(Y[k] == x) printf(" x is in the array ") ; else printf(" x is …
Consider a machine with a -way set associative data cache of size Kbytes and block size bytes. The cache is managed using bit virtual addresses and the page size is Kbytes. A program to be run on this machine begins as follows: double ARR[1024][1024]; int i, j; /*Initialize array ARR to 0.0 */ for(i = 0; i < 1024; i++) …
Consider a machine with a -way set associative data cache of size Kbytes and block size bytes. The cache is managed using bit virtual addresses and the page size is Kbytes. A program to be run on this machine begins as follows: double ARR[1024][1024]; int i, j; /*Initialize array ARR to 0.0 */ for(i = 0; i < 1024; i++) …
Consider the following C functions: int f1 (int n) { if(n == 0 || n == 1) return n; else return (2 * f1(n-1) + 3 * f1(n-2)); } int f2(int n) { int i; int X[N], Y[N], Z[N]; X[0] = Y[0] = Z[0] = 0; X[1] = 1; Y[1] = 2; Z[1] = 3; for(i = 2; i <= n; i++){ X[i] = Y[i-1] + Z[i-2]; Y[i] = 2 * X[i]; Z[i] = 3 * X[i]; } return X[n]; } and return …
Delayed branching can help in the handling of control hazards The following code is to run on a pipelined processor with one branch delay slot: I1: ADD I2: Sub I3: ADD I4: STORE Memory BRANCH to Label if Which of the instructions I1, I2, I3 or I4 …
Let denote the number of binary strings of length that contain no consecutive s. The value of is
The subset-sum problem is defined as follows. Given a set of positive integers, , and positive integer , is there a subset of whose elements sum to ? A dynamic program for solving this problem uses a Boolean array, , with rows and columns. …
The subset-sum problem is defined as follows. Given a set of positive integers, , and positive integer , is there a subset of whose elements sum to ? A dynamic program for solving this problem uses a Boolean array, , with rows and columns. …
is a graph on vertices and edges. The edges of can be partitioned into two edge-disjoint spanning trees. Which of the following is NOT true for ?
