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
Given the function , where is a function in three Boolean variables and and , consider the following statements. Which of the following is true?
The total number of prime implicants of the function is __________
Let and , where is a positive integer. Which of the following statements is/are correct?
Let be a relation on the set of ordered pairs of positive integers such that if and only if . Which one of the following is true about ?
Let be a connected undirected graph of vertices and edges. The weight of a minimum spanning tree of is . When the weight of each edge of is increased by five, the weight of a minimum spanning tree becomes ______.
Consider the following recursive C function. void get(int n) { if (n<1) return; get (n-1); get (n-3); printf("%d", n); } If function is being called in then how many times will the function be invoked before returning to the ?
In the network , the octet (in decimal) of the last address of the network which can be assigned to a host is _______.
Suppose for are independent and identically distributed random variables whose probability mass functions are . Define another random variable , where denotes XOR. Then ______.
Two hosts are connected via a packet switch with bits per second links. Each link has a propagation delay of microseconds. The switch begins forwarding a packet microseconds after it receives the same. If bits of data are to be transmitted between the two hosts using a packet size of bits, the time elapsed between …
Consider the equation where and are unknown. The number of possible solutions is _____
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time? …
Which of the following languages are context-free?
If the following system has non-trivial solution, , then which one of the following options is TRUE?
Consider the following grammar G Where , , and are non-terminal symbols, , and are terminal symbols. Which of the following statement(s) is/are correct? S1: LL(1) can parse all strings that are generated using grammar G S2: LR(1) can parse all …
Consider the following two C code segments. and are one and two dimensional arrays of size and respectively, where . Assume that in both code segments, elements of are initialized to and each element of array is initialized to . Further assume that when stored in main …
Consider the partial Schedule involving two transactions and . Only the and the operations have been shown. The operation on data item is denoted by and operation on data item is denoted by . …
Consider a network connecting two systems located apart. The bandwidth of the network is per second. The propagation speed of the media is per second. It needs to design a Go-Back- sliding window protocol for this network. The average packet size is …
Consider the following C program #include<stdio.h> int main() { static int a[] = {10, 20, 30, 40, 50}; static int *p[] = {a, a+3, a+4, a+1, a+2}; int **ptr = p; ptr++; printf("%d%d", ptr-p, **ptr); } The output of the program is _______.
Assume that a mergesort algorithm in the worst case takes seconds for an input of size . Which of the following most closely approximates the maximum input size of a problem that can be solved in minutes?
Consider a binary tree T that has leaf nodes. Then the number of nodes in T that have exactly two children are ______.
