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
A process, has been allocated page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequence of page references (reference string): Least Recently Used (LRU) page replacement policy is a practical approximation to optimal page replacement. For …
Consider a machine with a byte addressable main memory of bytes. Assume that a direct mapped data cache consisting of lines of bytes each is used in the system. A x two-dimensional array of bytes is stored in the main memory starting from memory location . Assume that the data cache is initially empty. The …
Suppose that a robot is placed on the Cartesian plane. At each step it is allowed to move either one unit up or one unit right, i.e., if it is at then it can move to either or . Suppose that the robot is not allowed to traverse the line segment from to . With this constraint, how many distinct paths …
Consider the DAG with shown below. Which of the following is not a topological ordering?
Information about a collection of students is given by the relation . The relation gives which student has enrolled for (or taken) what course(s). Assume that every course is taken by at least one male and at least one female student. What …
Suppose that a robot is placed on the Cartesian plane. At each step it is allowed to move either one unit up or one unit right, i.e., if it is at then it can move to either or . How many distinct paths are there for the robot to reach the point starting from the initial position ?
A process has been allocated page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequence of page references (reference string): If optimal page replacement policy is used, how many page faults occur for the above reference string?
Consider the CFG with as the non-terminal alphabet, as the terminal alphabet, as the start symbol and the following set of production rules: Which …
Suppose the letters have probabilities , respectively. Which of the following is the Huffman code for the letter ?
Consider a machine with a byte addressable main memory of bytes. Assume that a direct mapped data cache consisting of lines of bytes each is used in the system. A two-dimensional array of bytes is stored in the main memory starting from memory location . Assume that the data cache is initially empty. The …
Consider the following Finite State Automaton: The language accepted by this automaton is given by the regular expression
Consider the following program segment. Here and are the general purpose registers. …
Match the following: …
The distance between two stations and is kilometers. All frames are bits long. The propagation delay per kilometer is seconds. Let bits/second be the channel capacity. Assuming that the processing delay is negligible, the number of bits for the sequence number field in a frame for maximum utilization, …
The message is to be transmitted using the CRC polynomial to protect it from errors. The message that should be transmitted is:
The address of a class host is to be split into subnets with a subnet number. What is the maximum number of subnets and the maximum number of hosts in each subnet?
In a token ring network the transmission speed is bps and the propagation speed is The -bit delay in this network is equivalent to:
There are stations in slotted LAN. Each station attempts to transmit with a probability in each time slot. What is the probability that ONLY one station transmits in a given time slot?
Consider the following schedules involving two transactions. Which one of the following statements is TRUE?
The order of a leaf node in a - tree is the maximum number of (value, data record pointer) pairs it can hold. Given that the block size is , data record pointer is long, the value field is long and a block pointer is long, what is the order of the leaf node?
