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
Identify the correct order in which a server process must invoke the function calls accept, bind, listen, and recv according to UNIX socket API.
Match the following: …
The cardinality of the power set of is _______
Consider a complete binary tree where the left and right subtrees of the root are max-heaps. The lower bound for the number of operations to convert the tree to a heap is
Consider the following function written in the C programming langauge : void foo(char *a) { if (*a && *a != ' ') { foo(a+1); putchar(*a); } } The output of the above function on input "" is
Let be the relation on the set of positive integers such that and only if and are distinct and let have a common divisor other than Which one of the following statements about is true?
In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is TRUE?
Which of the following statements is NOT correct about HTTP cookies?
Consider the basic COCOMO model where is the effort applied in person-months, is the development time in chronological months, is the estimated number of delivered lines of code (in thousands) and have their useful meanings. The basic COCOMO equations are of the form
Consider the following C function. int fun(int n) { int x=1, k; if (n==1) return x; for (k=1; k<n; ++k) x = x + fun(k) * fun (n-k); return x; } The return value of is ______.
The number of divisors of is ____.
A binary tree T has leaves. The number of nodes in T having two children is ______.
The minimum number of flip-flops required to construct a synchronous counter with the count sequence is _______.
With reference to the tree index of order shown below, the minimum number of nodes (including the Root node) that must be fetched in order to satisfy the following query. "Get all records with a search key greater than or equal to and less than " is ______.
The larger of the two eigenvalues of the matrix is _______.
A software requirements specification (SRS) document should avoid discussing which one of the following?
Consider the following two statements. : If a candidate is known to be corrupt, then he will not be elected : If a candidate is kind, he will be elected Which one of the following statements follows from and as per sound inference rules of logic?
Consider two decision problems such that reduces in polynomial time to 3-SAT and 3-SAT reduces in polynomial time to . Then which one of the following is consistent with the above statement?
Consider the following transaction involving two bank accounts and . read(x); x:=x-50; write (x); read(y); y:=y+50; write(y) The constraint that the sum of the accounts and should remain constant is that of
Out of the following sentences, select the most suitable sentence with respect to grammar and usage:
