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
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 …
Consider the following C code: #include<stdio.h> int *assignval (int *x, int val) { *x = val; return x; } void main () { int *x = malloc(sizeof(int)); if (NULL == x) return; x = assignval (x,0); if (x) { x = (int *)malloc(sizeof(int)); if (NULL == x) return; x = assignval (x,10); } printf("%d\n", *x); free(x); } The code suffers from which one of the …
Consider the following intermediate program in three address code p = a - b q = p * c p = u * v q = p + q Which one of the following corresponds to a static single assignment form of the above code?
Consider the struct defined below: struct data { int marks [100]; char grade; int cnumber; }; struct data student; The base address of student is available in register . The field student.grade can be accessed efficiently using:
Consider the following context-free grammar over the alphabet with as the start symbol:Which one of the following represents the language generated by the above grammar?
When two numbers and in 's complement representation (with and as the least significant bits) are added using a ripple-carry adder, the sum bits obtained are and the carry bits are . An overflow is said to have occurred if
