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
In a connected graph, a bridge is an edge whose removal disconnects the graph. Which one of the following statements is true?
Which of the following is/are regular languages?
Consider a typical disk that rotates at rotations per minute (RPM) and has a transfer rate of bytes/sec. If the average seek time of the disk is twice the average rotational delay and the controller's transfer time is times the disk transfer time, the average time (in milliseconds) to read or write a -byte sector of …
A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is microseconds. A -bit-ripple-carry binary adder is implemented by using four full adders. The total propagation time …
A computer system implements pages and a physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is , the length of the virtual address supported by the system is _______ …
Consider a simple checkpointing protocol and the following set of operations in the log. (start, T4); (write, T4, y, 2, 3); (start, T1); (commit, T4); (write, T1, z, 5, 7); (checkpoint); (start, T2); (write, T2, x, 1, 9); (commit, T2); (start, T3); (write, T3, z, 7, 2); If a crash happens now and the system tries to recover using both undo and redo …
Suppose you are provided with the following function declaration in the C programming language. int partition(int a[], int n); The function treats the first element of as a pivot and rearranges the array so that all elements less than or equal to the pivot is in the left part of the array, and all elements greater than the pivot is in the right …
Consider the sequence of machine instruction given below: In the above sequence, to are general purpose registers. In the instructions shown, the first register …
Which one of the following assertions concerning code inspection and code walkthrough is true?
Consider a processor with byte-addressable memory. Assume that all registers, including program counter (PC) and Program Status Word (PSW), are size of two bytes. A stack in the main memory is implemented from memory location and it grows upward. The stack pointer (SP) points to the top element of the stack. The current value of SP is …
Consider the following routing table at an IP router: …
The number of onto functions (surjective functions) from set to set is ______.
The secant method is used to find the root of an equation . It is started from two distinct estimates and for the root. It is an iterative procedure involving linear interpolation to a root. The iteration stops if is very small and then is the solution. The procedure is given below. Observe that there is an …
Consider the C program below #include <stdio.h> int *A, stkTop; int stkFunc (int opcode, int val) { static int size=0, stkTop=0; switch (opcode) { case -1: size = val; break; case 0: if (stkTop < size ) A[stkTop++]=val; break; default: if (stkTop) return A[--stkTop]; } return -1; } int main() { int B[20]; A=B; stkTop = -1; stkFunc (-1, 10); stkFunc …
Given below are some algorithms, and some algorithm design paradigms. …
The number of min-terms after minimizing the following Boolean expression is _______.
Consider the alphabet , the null/empty string and the set of strings generated by the corresponding non-terminals of a regular grammar. are related as follows. Which one of the following …
Assume that the bandwidth for a connection is bits/sec. Let be the value of RTT in milliseconds (rounded off to the nearest integer) after which the window scale option is needed. Let be the maximum possible window size with window scale option. Then the values of and are
Which one of the following hash functions on integers will distribute keys most uniformly over buckets numbered to for ranging from to ?
Consider two relations with the tuples and . Assume that is the full natural outer join of and . Consider the following tuples of the form Which one of the …
