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
Which of the following is NOT a superkey in a relational schema with attributes and primary key ?
Let be the number of -bit strings that do NOT contain two consecutive . Which one of the following is the recurrence relation for ?
Two eigenvalues of a real matrix are and . The determinant of is _______
A processor can support a maximum memory of , where the memory is word-addressable (a word consists of two bytes). The size of address bus of the processor is at least _________bits.
Consider the Boolean operator # with the following properties : and Then is equivalent to
Which of the following is/are example(s) of stateful application layer protocol?
Suppose the functions and can be computed in and nanoseconds by functional units and , respectively. Given two instances of and two instances of , it is required to implement the computation for . Ignoring all other delays, the minimum time required to complete …
Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds. The scheduling algorithm used is preemptive shortest remaining-time first. …
The width of the physical address on a machine is bits. The width of the tag field in a KB -way set associative cache is ________ bits.
Which one of the following well-formed formulae in predicate calculus is NOT valid ?
In an adjacency list representation of an undirected simple graph , each edge has two adjacency list entries: in the adjacency list of , and in the adjacency list of . These are called twins of each other. A twin pointer is a pointer from an adjacency list entry to its twin. If and , and the …
Consider the following database table named water_schemes: …
Consider the following languages: Which one of the following is TRUE?
A binary relation on is defined as follows: if or . Consider the following propositions: is reflexive. is transitive. Which one of the following statements is TRUE?
Consider the following program: int f (int * p, int n) { if (n <= 1) return 0; else return max (f (p+1, n-1), p[0] - p[1]); } int main () { int a[] = {3, 5, 2, 6, 4}; printf(" %d", f(a, 5)); } Note: returns the maximum of and . The value printed by this program is ________.
Consider a processor with registers and an instruction set of size twelve. Each instruction has five distinct fields, namely, opcode, two source register identifiers, one destination register identifier, and twelve-bit immediate value. Each instruction must be stored in memory in a byte-aligned fashion. If a program has instructions, the …
Consider the following two-process synchronization solution. …
A student wrote two context-free grammars G1 and G2 for generating a single C-like array declaration. The dimension of the array is at least one. For example, int a[10] [3]; The grammars use D as the start symbol, and use six terminal symbols int ; id [ ] num. …
Consider the following New-order strategy for traversing a binary tree: Visit the root; Visit the right subtree using New-order; Visit the left subtree using New-order; The New-order traversal of the expression tree corresponding to the reverse polish expression 3 4 * 5 - 2 ^ 6 7 * 1 + - is given by:
