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 Syntax Directed Translation Scheme , with non-terminals and terminals . Using the above , the output printed by a bottom-up parser, for the input is:
The size of the data count register of a controller is . The processor needs to transfer a file of kilobytes from disk to main memory. The memory is byte addressable. The minimum number of times the controller needs to get the control of the system bus from the processor to transfer the file from …
The attribute of three arithmetic operators in some programming language are given below. …
A sender uses the Stop-and-Wait protocol for reliable transmission of frames. Frames are of size bytes and the transmission rate at the sender is Size of an acknowledgment is bytes and the transmission rate at the receiver is The one-way …
Consider that wants to send a message that is digitally signed to . Let the pair of private and public keys for and be denoted by and for , respectively. Let represent the operation of encrypting with a key and represent the message digest. Which one of …
The coefficient of in is ___________.
The stage delays in a -stage pipeline are and picoseconds. The first stage (with delay picoseconds) is replaced with a functionality equivalent design involving two stages with respective delays and picoseconds. The throughput increase of the pipeline is ___________ percent.
Consider a computer system with -bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires bits, then the size of the per-process page table is __________ megabytes.
Consider a carry look ahead adder for adding two -bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is
Let be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements is/are TRUE? : Minimum spanning tree of does not change. : Shortest path between any pair of vertices does not change.
Consider the following code segment. x = u - t; y = x * v; x = y + w; y = t - z; y = x * y; The minimum number of total variables required to convert the above code segment to static single assignment form is __________.
Let denote a queue containing sixteen numbers and be an empty stack. returns the element at the head of the queue without removing it from . Similarly returns the element at the top of without removing it from . Consider the algorithm given below. while Q is not Empty do if S is Empty OR Top(S) ≤ Head …
We want to design a synchronous counter that counts the sequence and then repeats. The minimum number of flip-flops required to implement this counter is _____________.
Consider the following directed graph: The number of different topological orderings of the vertices of the graph is _____________.
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT ( refers to the number of items in the queue) ?
Let represents the following propositions. is a composite number. is a perfect square. is a prime number. The integer which satisfies is ____________.
A probability density function on the interval is given by and outside this interval the value of the function is zero. The value of is _________.
The worst case running times of Insertion sort , Merge sort and Quick sort, respectively are:
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Which of the following decision problems are undecidable? Given NFAs and , is Given a CFG and a string , does } ? Given CFGs and , is ? Given a TM , is ?
