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
An undirected graph contains nodes named . Two nodes are connected if and only if . Each edge is assigned a weight . A sample graph with is shown below. The length of the path from to in the MST of previous question with …
Consider the following recursive C function that takes two arguments. unsigned int foo(unsigned int n, unsigned int r) { if (n>0) return ((n%r) + foo(n/r, r)); else return 0; } What is the return value of the function when it is called as ?
Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration. If all the flip-flops were reset to at power on, what is the total number of distinct outputs (states) represented by generated by the counter?
Let be a regular language and be a context-free language such that . (For example, let be the language represented by the regular expression and be . Then which of the following is ALWAYS regular?
Consider a network with five nodes, to , as shown as below. The network uses a Distance Vector Routing protocol. Once the routes have been stabilized, the distance vectors at different nodes are as follows. N1: N2: N3: N4: N5: Each distance vector …
A container originally contains litres of pure spirit. From this container, litre of spirit replaced with litre of water. Subsequently, litre of the mixture is again replaced with litre of water and this process is repeated one more time. How much spirit is now left in the container?
A transporter receives the same number of orders each day. Currently, he has some pending orders (backlog) to be shipped. If he uses trucks, then at the end of the day he can clear all the orders. Alternatively, if he uses only trucks, then all the orders are cleared at the end of the day. What is the minimum number of …
The variable cost of manufacturing a product varies according to the equation , where is the quantity produced. The fixed cost of production of same product reduces with according to the equation . How many units should be produced to minimize the total cost ?
Few school curricula include a unit on how to deal with bereavement and grief, and yet all students at some point in their lives suffer from losses through death and parting. Based on the above passage which topic would not be included in a unit on bereavement?
and are four types of dangerous microbes recently found in a human habitat. The area of each circle with its diameter printed in brackets represents the growth of a single microbe surviving human immunity system within hours of entering the body. The danger to human beings varies proportionately with the toxicity, potency and growth …
Choose the word from the options given below that is most nearly opposite in the meaning to the given word Amalgamate
Choose the most appropriate word from the options given below to complete the following sentence. If you are trying to make a strong impression on your audience, you cannot do so by being understated, tentative or ________.
Choose the most appropriate word(s) from the options given below to complete the following sentence. I contemplated _________ Singapore for my vacation but decided against it.
If , then which of the following options is TRUE?
Which of the following options is the closest in the meaning to the word below: Inexplicable
An undirected graph contains nodes named . Two nodes are connected if and only if . Each edge is assigned a weight . A sample graph with is shown below. What will be the cost of the minimum spanning tree (MST) of such a graph with …
Consider a network with five nodes, to , as shown as below. The network uses a Distance Vector Routing protocol. Once the routes have been stabilized, the distance vectors at different nodes are as follows. N1: N2: N3: N4: N5: Each distance vector …
Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration. If at some instance prior to the occurrence of the clock edge, and have a value , and respectively, what shall be the value of after the clock edge?
Consider the following recursive C function that takes two arguments. unsigned int foo(unsigned int n, unsigned int r) { if (n>0) return ((n%r) + foo(n/r, r)); else return 0; } What is the return value of the function when it is called as ?
The following is the comment written for a C function. /* This function computes the roots of a quadratic equation a.x^2 + b.x + c = 0. The function stores two real roots in *root1 and *root2 and returns the status of validity of roots. It handles four different kinds of cases. (i) When coefficient a is zero irrespective of discriminant (ii) When …
