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
Consider the first order predicate formula : Here denotes that , where and are integers. Consider the following sets: …
There are unsorted arrays: . Assume that is odd.Each of contains distinct elements. There are no common elements between any two arrays. The worst-case time complexity of computing the median of the medians of is
Consider the following grammar and the semantic actions to support the inherited type declaration attributes. Let , and be the placeholders for the non-terminals or in the following table: …
Let be any connected, weighted, undirected graph. has a unique minimum spanning tree, if no two edges of have the same weight. has a unique minimum spanning tree, if, for every cut of , there is a unique minimum-weight edge crossing the cut. Which of the following statements is/are TRUE?
Consider the following snapshot of a system running concurrent processes. Process is holding instances of a resource , . Assume that all instances of are currently in use. Further, for all , process can place a request for at most additional instances of while holding the …
Consider the following statements: The smallest element in a max-heap is always at a leaf node The second largest element in a max-heap is always a child of a root node A max-heap can be constructed from a binary search tree in time A binary search tree can be constructed from a max-heap in time Which of the above statements are …
Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below: …
Consider the augmented grammar given below: Let The number of items in the set is______
The index node (inode) of a Unix -like file system has direct, one single-indirect and one double-indirect pointers. The disk block size is kB, and the disk block address is -bits long. The maximum possible file size is (rounded off to decimal place) ____ GB
Consider the following matrix: The absolute value of the product of Eigen values of is _______
A certain processor deploys a single-level cache. The cache block size is words and the word size is bytes. The memory system uses a -MHz clock. To service a cache miss, the memory controller first takes cycle to accept the starting address of the block, it then takes cycles to fetch all the eight words of the block, and finally …
Let be a full binary tree with leaves. (A full binary tree has every level full.) Suppose two leaves and of are chosen uniformly and independently at random. The expected value of the distance between and in (ie., the number of edges in the unique path between and ) is (rounded off to decimal …
Suppose is distributed uniformly in the open interval . The probability that the polynomial has only real roots is (rounded off to decimal place) _______
Consider that machines need to be connected in a LAN using -port Ethernet switches. Assume that these switches do not have any separate uplink ports. The minimum number of switches needed is ______
Let be the set of all bijections from to , where denotes the identity function, i.e. . Let denote composition on functions. For a string , let . Consider the language …
What is the minimum number of -input NOR gates required to implement a -variable function expressed in sum-of-minterms form as Assume that all the inputs and their complements are available. Answer: _______
A relational database contains two tables Student and Performance as shown below: …
Consider the following C program: #include <stdio.h> int main() { float sum = 0.0, j=1.0, i=2.0; while (i/j > 0.0625) { j=j+j; sum=sum+i/j; printf("%f\n", sum); } return 0; } The number of times the variable sum will be printed, when the above program is executed, is _________
Consider the following C program: #include <stdio.h> int main() { int a[] = {2, 4, 6, 8, 10}; int i, sum=0, *b=a+4; for (i=0; i<5; i++) sum=sum+(*b-i)-*(b-i); printf("%d\n", sum); return 0; } The output of the above C program is _______
In an RSA cryptosystem, the value of the public modulus parameter is . If it is also known as that where denotes Euler’s Totient Function, then the prime factor of which is greater than is _________
