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 the sequential circuit shown below, if the initial value of the output is . What are the next four values of ?
What is the boolean expression for the output of the combinational logic circuit of NOR gates given below?
Which of the following statements are true? Shortest remaining time first scheduling may cause starvation Preemptive scheduling may cause starvation Round robin is better than FCFS in terms of response time
A system uses FIFO policy for system replacement. It has page frames with no pages loaded to begin with. The system first accesses distinct pages in some order and then accesses the same pages but now in the reverse order. How many page faults will occur?
What is the appropriate pairing of items in the two columns listing various activities encountered in a software life cycle? P. Requirements Capture 1. Module Development and Integration Q. Design 2. Domain Analysis R. Implementation 3. Structural and Behavioral Modeling S. Maintenance 4. Performance Tuning
Consider the methods used by processes and for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables and are randomly assigned. …
The cyclomatic complexity of each of the modules and shown below is What is the cyclomatic complexity of the sequential integration shown on the right hand side?
Which of the following concurrency control protocols ensure both conflict serializability and freedom from deadlock? -phase locking Time-stamp ordering
A relational schema for a train reservation database is given below. passenger(pid, pname, age) reservation(pid, class, tid) …
Consider a -tree in which the maximum number of keys in a node is . What is the minimum number of keys in any non-root node?
Let be the recursive language. Let and be languages that are recursively enumerable but not recursive. Which of the following statements is not necessarily true?
Which one of the following is not a client-server application?
Which languages necessarily need heap allocation in the runtime environment?
Which data structure in a compiler is used for managing information about variables and their attributes?
Two alternative packages and are available for processing a database having records. Package requires time units and package requires time units to process records. What is the smallest value of for which package will be preferred over ?
What does the following program print? #include<stdio.h> void f(int *p, int *q) { p=q; *p=2; } int i=0, j=1; int main() { f(&i, &j); printf("%d %d\n", i,j); return 0; }
In a binary tree with nodes, every node has an odd number of descendants. Every node is considered to be its own descendant. What is the number of nodes in the tree that have exactly one child?
The Boolean expression of the output of the multiplexer shown below is
is a -bit signed integer. The 's complement representation of is . The 's complement representation of is
The main memory unit with a capacity of is built using DRAM chips. Each DRAM chip has rows of cells with cells in each row. The time taken for a single refresh operation is . The time required to perform one refresh operation on all the cells …
