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
Let and denote read and write operations respectively on a data item by a transaction . Consider the following two schedules. Which one of the following options is correct?
Let be a group of order , and be a subgroup of such that . Which one of the following options is correct?
Consider the relation with the following functional dependencies. Consider the decomposition of the relation into the constituent relations according to the following two decomposition schemes. …
Consider the two statements. There exist random variables and such that For all random variables and Which one of the following …
Let be an undirected unweighted connected graph. The diameter of is defined as: Let be the adjacency matrix of . Define graph on the same set of vertices with adjacency matrix , where …
Consider the following program. #include <stdio.h> int main() { int i, j, count; count=0; i=0; for (j=-3; j<=3; j++) { if (( j >= 0) && (i++)) count = count + j; } count = count +i; printf("%d", count); return 0; } Which one of the following options is correct?
Consider the following language: Which one of the following deterministic finite automata accepts
For a Turing machine , denotes an encoding of . Consider the following two languages. Which one of the …
Define to be the maximum amount earned by cutting a rod of length meters into one or more pieces of integer length and selling them. For , let denote the selling price of a rod whose length is meters. Consider the array of prices: …
An in a connected graph is a vertex such that removing the vertex and its incident edges disconnects the graph into two or more connected components. Let be a tree obtained by doing in a connected undirected graph . Which of the following options is/are correct?
Consider the following Boolean expression. Which of the following Boolean expressions is/are equivalent to (complement of )?
A relation is said to be circular if and together imply . Which of the following options is/are correct?
A server application is programmed to listen on port number on host . A client is connected to the server over the network. Consider that while the connection was active, the server machine crashed and rebooted. Assume that the client does not use the keepalive timer. …
Consider two hosts and connected through a router . The maximum transfer unit value of the link between and is bytes, and between and is bytes. A segment of size bytes was transferred from to through , with identification value as …
Consider the following pseudocode, where is a semaphore initialized to in line and is a shared variable initialized to in line . Assume that the increment operation in line is atomic. 1. int counter = 0; 2. Semaphore S = init(5); 3. void parop(void) 4. { 5. wait(S); 6. …
Consider a hashing approach for -bit integer keys: There is a main hash table of size . The least significant bits of a key is used to index into the main hash table. Initially, the main hash table entries are empty. Thereafter, when more keys are hashed into it, to resolve collisions, the set of all keys corresponding to …
Consider the following function: int SimpleFunction(int Y[], int n, int x) { int total = Y[0], loopIndex; for (loopIndex=1; loopIndex<=n-1; loopIndex++) total=x*total +Y[loopIndex]; return total; } Let be an array of elements with , for all such that . The value returned …
Consider the sliding window flow-control protocol operating between a sender and a receiver over a full-duplex error-free link. Assume the following: The time taken for processing the data frame by the receiver is negligible. The time taken for processing the acknowledgement frame by the sender is negligible. The sender has infinite number of frames …
In a pushdown automaton , a transition of the form, where , , and , represents Consider the following pushdown automaton over the input alphabet and stack alphabet …
Consider the following code segment: a = b + c; e = a + 1; d = b + c; f = d + 1; g = e + f; In a compiler, this code segment is represented internally as a directed acyclic graph . The number of nodes in the is _____________
