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
Three processes arrive at time zero with bursts of and milliseconds. If the scheduler has prior knowledge about the length of the bursts, the minimum achievable average waiting time for these three processes in a non-preemptive scheduler (rounded to nearest integer) is _____________ milliseconds.
Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation actions, given as pseudo-code …
The following relation records the age of employees of a company, where (indicating the employee number) is the key: Consider the following relational algebra expression: What does the above expression generate?
Consider a -bit counter, designed using flip-flops, as shown below: Assuming the initial state of the counter given by as , what are the next three states?
Assume that a -bit Hamming codeword consisting of -bit data and check bits is , where the data bits and the check bits are given in the following tables: …
Consider the following context-free grammar where the set of terminals is . …
Consider the following recurrence relation. Which one of the following options is correct?
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. …
