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 the following statements. Every grammar is unambiguous but there are certain unambiguous grammars that are not . For any context-free grammar, there is a parser that takes at most time to parse a string of length . Which one of the following options is correct?
Let the representation of a number in base be . What is the hexadecimal representation of the number?
Consider the following two statements. : Destination address of an reply is a broadcast address. : Destination address of an request is a broadcast address. Which one of the following choices is correct?
Let and be two propositions. Consider the following two formulae in propositional logic. Which one of the following choices is correct?
Consider the following array. Which algorithm out of the following options uses the least number of comparisons (among the array elements) to sort the above array in ascending order?
A binary search tree contains distinct elements. What is the time complexity of picking an element in that is smaller than the maximum element in ?
In the context of operating systems, which of the following statements is/are correct with respect to paging?
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 …
