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 statements is FALSE?
The usual implementation of Insertion Sort to sort an array uses linear search to identify the position where an element is to be inserted into the already sorted part of the array. If, instead, we use binary search to identify the position, the worst case running time will
Consider the following graph: Among the following sequences: abeghf abfehg abfhge afghbe Which are the depth-first traversals of the above graph?
Consider the following three claims: where and are constants Which of the following claims are correct?
Suppose the numbers are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering on natural numbers. What is the in-order traversal sequence of the resultant tree?
Assume that the SLR parser for a grammar G has states and the LALR parser for G has states. The relationship between and is
In a bottom-up evaluation of a syntax directed definition, inherited attributes can
Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?
The regular expression denotes the same set as
Nobody knows yet if . Consider the language defined as follows.Which of the following statements is true?
Ram and Shyam have been asked to show that a certain problem is Ram shows a polynomial time reduction from the problem to , and Shyam shows a polynomial time reduction from to Which of the following can be inferred from these reductions?
Consider an array multiplier for multiplying two bit numbers. If each gate in the circuit has a unit delay, the total delay of the multiplier is
For a pipelined CPU with a single ALU, consider the following situations The instruction uses the result of the instruction as an operand The execution of a conditional jump instruction The and instructions require the ALU at the same time. Which of the above can cause a hazard
Assuming all numbers are in complement representation, which of the following numbers is divisible by ?
Let be an arbitrary graph with nodes and components. If a vertex is removed from , the number of components in the resultant graph must necessarily lie down between
Consider the set of all strings over the alphabet . with the concatenation operator for strings
Let be the number of different binary search trees on distinct elements. Then , where is
couples are invited to a party with the condition that every husband should be accompanied by his wife. However, a wife need not be accompanied by her husband. The number of different gatherings possible at the party is
Let be a sequence of distinct integers sorted in ascending order. How many distinct pairs of sequences, and are there such that each is sorted in ascending order, has and has elements, and the result of merging and gives
Let denote the probability of the event . Given , , the values of and respectively are
