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
is an real matrix. is an real vector. Suppose there are two vectors, and such that, and . Which one of the following statements is false?
Let and be finite sets. Let and . Which one of the following is true?
For each element in a set of size , an unbiased coin is tossed. The coin tosses are independent. An element is chosen if the corresponding coin toss was a head. The probability that exactly elements are chosen is
Consider the following log sequence of two transactions on a bank account, with initial balance that transfer to a mortgage payment and then apply a interest. T1 start T1 B old new T1 M old new T1 commit T2 start T2 B old new T2 commit Suppose the database system crashes …
Let , and . Which of these languages are NOT context free?
We are given a set where . A sample is drawn by selecting each independently with probability . The expected value of the smallest number in sample is:
An element in an array is called a leader if it is greater than all elements to the right of it in . The best algorithm to find all leaders in an array
Let S be an NP-complete problem and Q and R be two other problems not known to be in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of the following statements is true?
Consider the following C-program fragment in which , and are integer variables. for( i = n, j = 0; i > 0; i /= 2, j +=i ); Let denote the value stored in the variable after termination of the for loop. Which one of the following is true?
Which one of the following in place sorting algorithms needs the minimum number of swaps?
A scheme for storing binary trees in an array is as follows. Indexing of starts at instead of . the root is stored at . For a node stored at , the left child, if any, is stored in and the right child, if any, in . To be able to store any binary tree on n vertices the minimum size of should be
To implement Dijkstra’s shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is:
Consider a weighted complete graph on the vertex set such that the weight of the edge is . The weight of a minimum spanning tree of is:
In a binary max heap containing numbers, the smallest element can be found in time
A CPU has - instructions. A program starts at address (in decimal). Which one of the following is a legal program counter (all values in decimal)?
You are given a free running clock with a duty cycle of and a digital waveform which changes only at the negative edge of the clock. Which one of the following circuits (using clocked D flip-flops) will delay the phase of by ?
Consider the following grammar Consider the following LR(0) items corresponding to the grammar above Given the items above, which two of them will appear in the same set in the …
Consider three CPU-intensive processes, which require , and time units and arrive at times , and , respectively. How many context switches are needed if the operating system implements a shortest remaining time first scheduling algorithm? Do not count the context switches at time zero and at the end.
For which one of the following reasons does internet protocol(IP) use the time-to-live(TTL) field in IP datagram header?
A relation is defined on ordered pairs of integers as follows: Then is:
