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
Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity ?
Let be a binary relation on the set , where if the product of and is square of an integer. Which of the following properties is/are satisfied by ?
In a system, numbers are represented using -bit two's complement form. Consider four numbers and in the system. Which of the following operations will result in arithmetic overflow?
Which of the following grammars is/are ambiguous?
For a real number , let . Which of the following statements is/are true?
The keys are inserted into a hash table using the hash function . The collisions are resolved by chaining. After all the keys are inserted, the length of the longest chain is . (answer in integer)
Consider the system of linear equations given below. Suppose the values of and are chosen such that the system of linear equations produce multiple solutions. Then the product of and is . (answer in integer)
Consider an array . Suppose the merge sort algorithm is executed on array to sort it in increasing order. The merge sort algorithm will carry out a total of merge operations. A merge operation on sorted left array and sorted right array is said to be void if the output of the merge operation is the …
If an IP network uses a subnet mask of , the maximum number of IP addresses that can be assigned to network interfaces is . (answer in integer)
The -bit single precision representation of a number is . The number in decimal representation is . (rounded off to two decimal places)
A lexical analyzer uses the following token definitions For the string given below, …
Consider a complete graph with vertices ( ). Note that multiple spanning trees can be constructed over . Each of these spanning trees is represented as a set of edges. The Jaccard coefficient between any two sets is defined as the ratio of the size of the intersection of the two sets to the size of the union of the two …
Let be a weighted directed acyclic graph with edges and vertices. Given and a source vertex in , which one of the following options gives the worst case time complexity of the fastest algorithm to find the lengths of shortest paths from to all vertices that are reachable from in
Consider an array of integers of size . The indices of run from to . An algorithm is to be designed to check whether satisfies the condition given below. such that Which one of the following gives the worst case time complexity of the fastest …
Consider a table , where the elements , represent the cost of the optimal solutions of different subproblems of a problem that is being solved using a dynamic programming algorithm. The recursive formulation to compute the table entries is as follows: …
Consider the following -variable Boolean function Consider as MSB, as LSB. Which one of the following options represents the minimal sum of products form for the above function? Note: is OR operation, is AND operation, is NOT operation
Consider the canonical parsing of the grammar below using terminals and non-terminals with as the start symbol. Which one of the following options gives the …
In the context of schema normalization in relational DBMS, consider a set of functional dependencies. The set of all functional dependencies implied by is called the closure of . To compute the closure of , Armstrong's Axioms can be applied. Consider , and as sets of attributes over a relational …
Consider the transmission of data bits over a link that uses Cyclic Redundancy Check (CRC) code for error detection. If the generator bit pattern is given to be , which one of the following options shows the remainder bit pattern appended to the data bits before transmission?
Consider the control flow graph given below. Which one of the following options is the set of live variables at the exit point of each basic block?
