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 the following two functions. void fun1(int n) { if(n == 0) return; printf("%d", n); fun2(n - 2); printf("%d", n); } void fun2(int n) { if(n == 0) return; printf("%d", n); fun1(++n); printf("%d", n); } The output printed when is called is
If is a grammar with productions where is the start variable, then which one of the following strings is not generated by ?
Consider a combination of and flip-flops connected as shown below. The output of the flip-flop is connected to the input of the flip-flop and the output of the flip-flop is connected to the input of the flip-flop. Initially, both and are set to (before the …
A computer network uses polynomials over for error checking with bits as information bits and uses as the generator polynomial to generate the check bits. In this network, the message is transmitted as:
Let be real valued square symmetric matrix of rank with Consider the following statements. One eigenvalue must be in The eigenvalue with the largest magnitude must be strictly greater than Which of the above statements about eigenvalues of is/are …
Let , and be propositions and the expression be a contradiction. Then, the expression is
Let and be two vectors in whose Euclidean norms satisfy . What is the value of such that bisects the angle between and ?
The value of
Let be connected, undirected, edge-weighted graph. The weights of the edges in are positive and distinct. Consider the following statements: Minimum Spanning Tree of is always unique. Shortest path between any two vertices of is always unique. Which of the above statements is/are necessarily true?
A multithreaded program executes with number of threads and uses number of locks for ensuring mutual exclusion while operating on shared memory locations. All locks in the program are non-reentrant, i.e., if a thread holds a lock , then it cannot re-acquire lock without releasing it. If a thread is unable to acquire a lock, it …
Consider a two-level cache hierarchy with and caches. An application incurs memory accesses per instruction on average. For this application, the miss rate of cache is ; the cache experiences, on average, misses per instructions. The miss rate of expressed correct to two decimal places is …
Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below: …
Consider a database that has the relation schema EMP (EmpId, EmpName, and DeptName). An instance of the schema EMP and a SQL query on it are given below: …
Consider the language given by the regular expression over the alphabet . The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting is ___________ .
Let be a tree with vertices. The sum of the degrees of all the vertices in is ________
Consider the Karnaugh map given below, where represents "don't care" and blank represents . Assume for all inputs , the respective complements are also available. The above logic is implemented using -input gates only. The minimum number of …
Let be a Gaussian random variable with mean 0 and variance . Let = where is the maximum of and . The median of is ______________ .
Threads of a process share
The following functional dependencies hold true for the relational schema : Which of the following is irreducible equivalent for this set of functional dependencies?
A sender sends a message to receiver , which is digitally signed by with its private key. In this scenario, one or more of the following security violations can take place. can launch a birthday attack to replace with a fraudulent message third party attacker can launch a birthday attack to replace with a …
