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 denote an encoding of an automaton . Suppose that . Which of the following languages is/are recursive?
Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery. Which of the following statements is/are correct?
Which of the following standard library functions will always invoke a system call when executed from a single-threaded process in a operating system?
Consider a linear list based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of pointers to the data blocks. Consider a given directory . Which of the following operations will necessarily require a full scan of …
In an undirected connected planar graph , there are eight vertices and five faces. The number of edges in is _________.
Consider the following undirected graph with edge weights as shown: The number of minimum-weight spanning trees of the graph is ___________.
There are jobs with distinct difficulty levels, and computers with distinct processing speeds. Each job is assigned to a computer such that: The fastest computer gets the toughest job and the slowest computer gets the easiest job. Every computer gets at least one job. The number of ways in which this can be done is ___________.
The lifetime of a component of a certain type is a random variable whose probability density function is exponentially distributed with parameter . For a randomly picked component of this type, the probability that its lifetime exceeds the expected lifetime (rounded to decimal places) is ____________.
Consider the following expression.The value of the above expression (rounded to 2 decimal places) is ___________.
Consider the following sequence of operations on an empty stack.Consider the following sequence of operations on an empty queue. …
Consider a computer system with a byte-addressable primary memory of size bytes. Assume the computer system has a direct-mapped cache of size ( = bytes), and each cache block is of size bytes. The size of the tag field is __________ bits.
A relation in a relational database has tuples. The attribute has integer values ranging from to , and the attribute has integer values ranging from to . Assume that the attributes and are independently distributed. The estimated number of tuples in the output of …
Consider the following representation of a number in single-precision floating point format with a bias of . Here and denote the sign, exponent, and fraction components of the floating point representation. The decimal value corresponding to the …
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?
