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 a computer system with -bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires bits, then the size of the per-process page table is __________ megabytes.
Consider a carry look ahead adder for adding two -bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is
Let be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements is/are TRUE? : Minimum spanning tree of does not change. : Shortest path between any pair of vertices does not change.
Consider the following code segment. x = u - t; y = x * v; x = y + w; y = t - z; y = x * y; The minimum number of total variables required to convert the above code segment to static single assignment form is __________.
Let denote a queue containing sixteen numbers and be an empty stack. returns the element at the head of the queue without removing it from . Similarly returns the element at the top of without removing it from . Consider the algorithm given below. while Q is not Empty do if S is Empty OR Top(S) ≤ Head …
We want to design a synchronous counter that counts the sequence and then repeats. The minimum number of flip-flops required to implement this counter is _____________.
Consider the following directed graph: The number of different topological orderings of the vertices of the graph is _____________.
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT ( refers to the number of items in the queue) ?
Let represents the following propositions. is a composite number. is a perfect square. is a prime number. The integer which satisfies is ____________.
A probability density function on the interval is given by and outside this interval the value of the function is zero. The value of is _________.
The worst case running times of Insertion sort , Merge sort and Quick sort, respectively are:
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Which of the following decision problems are undecidable? Given NFAs and , is Given a CFG and a string , does } ? Given CFGs and , is ? Given a TM , is ?
The complement representation of an integer is its decimal representation is ____________
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 's and two consecutive 's?
Which one of the following is NOT a part of the ACID properties of database transactions?
Consider the following C program. # include <stdio.h> void mystery (int *ptra, int *ptrb) { int *temp; temp = ptrb; ptrb =ptra; ptra = temp; } int main () { int a = 2016, b=0, c= 4, d = 42; mystery (&a, &b); if (a < c) mystery (&c, &a); mystery (&a, &d); printf("%d\n", a); } The output of the program is _________.
Which of the following languages is generated by the given grammar?
Which one of the following protocols is NOT used to resolve one form of address to another one?
Consider the following "C" program. void f(int, short); void main() { int i = 100; short s = 12; short *p = &s; ____________; // call to f() } Which one of the following expressions , when placed in the blank above, will NOT result in a type checking error?
