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
The set is a group under multiplication modulo . The inverses of and are respectively:
Let be a simple graph with vertices and edges. The size of the minimum vertex cover of G is . Then, the size of the maximum independent set of is:
Let be the continuous probability density function of a random variable , the probability that , is :
Let be a simple connected planar graph with vertices and edges. Then, the number of faces in the planar embedding of the graph is:
Let and be non-empty sets and let and Which one of the following is TRUE?
The following is the Hasse diagram of the poset The poset is :
Suppose there are sorted lists of elements each. The time complexity of producing a sorted list of all these elements is: (Hint:Use a heap data structure)
Consider the following circuit involving a positive edge triggered D FF. Consider the following timing diagram. Let represents the logic level on the line in the -th clock period. Let represent the complement of . The correct output sequence on over the clock periods through is:
Consider the following code fragment: if (fork() == 0) { a = a + 5; printf("%d, %p n", a, &a); } else { a = a - 5; printf ("%d, %p n", a,& a); } Let be the values printed by the parent process and be the values printed by the child process. Which one of the following is TRUE?
Consider three IP networks and . Host in network sends messages each containing of application data to a host in network . The TCP layer prefixes byte header to the message. This passes through an intermediate network . The maximum packet size, including byte IP header, in each …
Consider the grammar rule for arithmetic expressions. The code generated is targeted to a CPU having a single user register. The subtraction operation requires the first operand to be in the register. If and do not have any common sub expression, in order to get the shortest possible code
Choose the best matching between the programming styles in Group 1 and their characteristics in Group 2. …
Consider the following program segment for a hypothetical CPU having three user registers and \begin{array}{|l|l|c|} \hline \text {Instruction} & \text{Operation }& \text{Instruction size (in Words)} \\\hline \text{MOV } & \text{} \leftarrow \text{Memory}& \text{} \\\hline\text{MOV …
is a recursively enumerable language over . An algorithm effectively enumerates its words as Define another language over as . Here # is new symbol. Consider the following …
Consider the following grammar G: Let and denote the number of a’s and b’s in a string respectively. The language over generated by is
The following finite state machine accepts all those binary strings in which the number of ’s and ’s are respectively:
The language is
A program takes as input a balanced binary search tree with leaf nodes and computes the value of a function for each node . If the cost of computing is: …
The recurrence equation evaluates to
Let be an array storing a bit ( or ) at each location, and is a function whose time complexity is . Consider the following program fragment written in a C like language: counter = 0; for (i=1; i<=n; i++) { if (a[i] == 1) counter++; else {f (counter); counter = 0;} } The complexity of this program fragment …
