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 statements about the cyclomatic complexity of the control flow graph of a program module. Which of these are TRUE? The cyclomatic complexity of a module is equal to the maximum number of linearly independent circuits in the graph. The cyclomatic complexity of a module is the number of decisions in the module plus one, where a decision …
A hard disk has sectors per track, platters each with recording surfaces and cylinders. The address of a sector is given as a triple , where is the cylinder number, is the surface number and is the sector number. Thus, the 0 sector is addresses as , …
Let be the generator polynomial used for CRC checking. What is the condition that should be satisfied by to detect odd number of bits in error?
In the RSA public key cryptosystem, the private and public keys are and respectively, where and and are large primes. Besides, is public and and are private. Let be an integer such that and . Now consider the following equations. …
While opening a connection, the initial sequence number is to be derived using a time-of-day (ToD) clock that keeps running even when the host is down. The low order bits of the counter of the ToD clock is to be used for the initial sequence numbers. The clock counter increments once per milliseconds. The maximum packet lifetime is given to be …
Consider two transactions and , and four schedules , of and as given below: …
The following key values are inserted into a - tree in which order of the internal nodes is , and that of the leaf nodes is , in the sequence given below. The order of internal nodes is the maximum number of tree pointers in each node, and the order of leaf nodes is the maximum number of data items that can be stored in it. The - …
Let and be relational schemes such that and Now consider the following queries on the database: …
Which of the following statements are TRUE? There exist parsing algorithms for some programming languages whose complexities are less than A programming language which allows recursion can be implemented with static storage allocation. No L-attributed definition can be evaluated in the framework of bottom-up parsing. Code improving …
The above DFA accepts the set of all strings over that
Let , where and are languages as defined below: Then is
In quick-sort, for sorting elements, the smallest element is selected as pivot using an time algorithm. What is the worst case time complexity of the quick sort?
What is the maximum height of any AVL-tree with nodes? Assume that the height of a tree with a single node is .
Consider the following graph: Which one of the following is NOT the sequence of edges added to the minimum spanning tree using Kruskal’s algorithm?
The keys and are inserted into an initially empty hash table of length using open addressing with hash function and linear probing. What is the resultant hash table?
The running time of an algorithm is represented by the following recurrence relation: Which one of the following represents the time complexity of the algorithm?
A multilevel page table is preferred in comparison to a single level page table for translating virtual address to physical address because
The enter_CS() and leave_CS() functions to implement critical section of a process are realized using test-and-set instruction as follows: void enter_CS(X) { while(test-and-set(X)); } void leave_CS(X) { X = 0; } In the above solution, is a memory location associated with the and is initialized to . Now consider the following statements: The …
In the following process state transition diagram for a uniprocessor system, assume that there are always some processes in the ready state: Now consider the following statements: If a process makes a transition , it would result in another process making transition immediately. A process in blocked state can make transition E while …
Consider a disk system with cylinders. The requests to access the cylinders occur in following sequence: Assuming that the head is currently at cylinder , what is the time taken to satisfy all requests if it takes to move from one cylinder to adjacent one and shortest seek time first …
