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 a computer system with support. The module is transferring one -bit character in one cycle from a device to memory through cycle stealing at regular intervals. Consider a processor. If processor cycles are used for , the data transfer rate of the device is …
A data file consisting of student-records is stored on a hard disk with block size of bytes. The data file is sorted on the primary key . The size of a record pointer for this disk is bytes. Each student-record has a candidate key attribute called of size bytes. Suppose an index file …
For a given biased coin, the probability that the outcome of a toss is a head is . This coin is tossed times. Let denote the random variable whose value is the number of times that head appeared in these tosses. The standard deviation of (rounded to decimal place) is _________
Consider the following function: int SomeFunction (int x, int y) { if ((x==1) || (y==1)) return 1; if (x==y) return x; if (x > y) return SomeFunction(x-y, y); if (y > x) return SomeFunction (x, y-x); } The value returned by is __________
Suppose that is a matrix such that every solution of the equation is a scalar multiple of . The rank of is __________
Suppose that is a continuous function on the interval and a differentiable function in the interval such that for every in the interval, . If , then is at most __________
Assume a two-level inclusive cache hierarchy, and , where is the larger of the two. Consider the following statements. : Read misses in a write through cache do not result in writebacks of dirty lines to the : Write allocate policy must be used in conjunction with write through caches and no-write …
Suppose we want to design a synchronous circuit that processes a string of ’s and ’s. Given a string, it produces another string by replacing the first in any subsequence of consecutive ’s by a . Consider the following example. …
In an examination, a student can choose the order in which two questions ( and ) must be attempted. If the first question is answered wrong, the student gets zero marks. If the first question is answered correctly and the second question is not answered correctly, the student gets the marks only for the first question. If …
Consider the string . Each letter in the string must be assigned a binary code satisfying the following properties: For any two letters, the code assigned to one letter must not be a prefix of the code assigned to the other letter. For any two letters of the same frequency, the letter which occurs earlier in the dictionary order is …
Consider the following code segment: z=x + 3 + y->f1 + y->f2; for (i = 0; i < 200; i = i + 2) { if (z > i) { p = p + x + 3; q = q + y->f1; } else { p = p + y->f2; q = q + x + 3; } } Assume that the variable points to a (allocated on the heap) containing two fields and …
The relation scheme given below is used to store information about the employees of a company, where is the key and indicates the department to which the employee is assigned. Each employee is assigned to exactly one department. Consider the …
Consider the cyclic redundancy check based error detecting scheme having the generator polynomial . Suppose the message is to be transmitted. Check bits are appended at the end of the message by the transmitter using the above scheme. The transmitted bit string is denoted by …
Consider the following program: #include <stdio.h> #include <stdlib.h> struct Node{ int value; struct Node *next;}; int main( ) { struct Node *boxE, *head, *boxN; int index=0; boxE=head= (struct Node *) malloc(sizeof(struct Node)); head → value = index; for (index =1; index<=3; index++){ boxN = (struct Node *) malloc …
Let be the following schedule of operations of three transactions , and in a relational database system: Consider the statements and below: : is conflict-serializable. : If commits before finishes, then …
Consider the following two statements about regular languages: : Every infinite regular language contains an undecidable language as a subset. : Every finite language is regular. Which one of the following choices is correct?
For two -dimensional real vectors and , the operation is defined as follows: Let be a set of -dimensional non-zero real vectors such that for every pair of distinct vectors , . What is the maximum cardinality possible …
For constants and , consider the following recurrence defined on the non-negative integers: Which one of the following options is correct about the recurrence ?
Suppose the following functional dependencies hold on a relation with attributes , and : Which of the following functional dependencies can be inferred from the above functional dependencies?
For a string , we define to be the reverse of . For example, if then . Which of the following languages is/are context-free?
