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 fields is/are modified in the header of a packet going out of a network address translation device from an internal network to an external network?
Let and be non-empty finite sets such that there exist one-to-one and onto functions from to and from to . The number of possible values of is ___________.
Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below. …
The number of spanning trees in a complete graph of vertices labelled and is _________.
Consider the following two relations, and : …
Consider a network path between nodes and via router . Node sends a file of size bytes to via this path by splitting the file into chunks of bytes each. Node sends these chunks one after the other without any wait time …
Consider the following syntax-directed definition . …
Consider the following pseudo-code. L 1: t1 = -1 L 2: t2 = 0 L 3: t3 = 0 L 4: t4 = 4 * t3 L 5: t5 = 4 * t2 L 6: t6 = t5 * M L 7: t7 = t4 + t6 L 8: t8 = a[t7] L 9: if t8 <= max goto L11 L 10: t1 = t8 L 11: t3 = t3 + 1 L 12: if t3 < M goto L4 L 13: t2 = t2 + 1 L 14: if t2 < N goto L3 L 15: max = t1 Which one of the following options CORRECTLY …
Consider the following two threads and that update two shared variables and . Assume that initially . Though context switching between threads can happen at any time, each statement of or is executed atomically without interruption. …
An array is heapified. Which one of the following options represents the first three elements in the heapified array?
Consider the following recurrence relation: Which one of the following options is CORRECT?
Consider a binary min-heap containing distinct elements. Let be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values of is
The symbol indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?
Let be a directed graph and a depth first search spanning tree in that is rooted at a vertex . Suppose is also a breadth first search tree in , rooted at . Which of the following statements is/are TRUE for every such graph and tree ?
Consider the following read-write schedule over three transactions , and , where the subscripts in the schedule indicate transaction IDs: Which of the following transaction schedules is/are conflict equivalent to …
Consider a Boolean expression given by . Which of the following statements is/are CORRECT?
Consider the following function definition. int f (int x, int y){ for (int i=0 ; i<y ; i++ ) { x= x + x + y; } return x; } Which of the following statements is/are TRUE about the above function?
Let be any matrix, where . Which of the following statements is/are TRUE about the system of linear equations ?
Consider the -state . accepting the language shown below. For any string let be the number of in and be the number of 1 's in . Which of the following statements is/are FALSE?
The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. Let be any graph with vertices and chromatic number . Which of the following statements is/are always TRUE?
