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 logic circuit diagram. Which is/are the CORRECT option(s) for the output function ?
The following two signed 's complement numbers (multiplicand M and multiplier Q) are being multiplied using Booth's algorithm: M: and Q: The total number of addition and subtraction operations to be performed is_____________. (Answer in integer)
int x=126,y=105; do { if(x>y) x=x-y; else y=y-x; } while(x!=y); printf("%d",x); The output of the given C code segment is _________. (Answer in integer)
In a -bit ripple counter, if the period of the waveform at the last flip-flop is microseconds, then the frequency of the ripple counter in kHz is _________. (Answer in integer)
Suppose the values are inserted in that order into an initially empty binary search tree. Let be the resulting binary search tree. The number of edges in the path from the node containing to the root node of is _________. (Answer in integer)
Suppose we are transmitting frames between two nodes using Stop-and-Wait protocol. The frame size is bits. The transmission rate of the channel is bps (bits/second) and the propagation delay between the two nodes is milliseconds. Assume that the processing times at the source and destination are negligible. Also, assume that the …
Let be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant is added to the weight of every edge. Which ONE of the following statements is TRUE about the minimum spanning trees (MSTs) and shortest paths (SPs) in before and after the edge weight update?
A meld operation on two instances of a data structure combines them into one single instance of the same data structure. Consider the following data structures: P. Unsorted doubly linked list with pointers to the head node and tail node of the list. Q. Min-heap implemented using an array. R. Binary Search Tree. Which ONE of the following options gives the …
For a direct-mapped cache, bits are used for the tag field and bits are used to index into a cache block. The size of each cache block is one byte. Assume that there is no other information stored for each cache block. Which ONE of the following is the CORRECT option for the sizes of the main memory and the cache memory in this system (byte …
Given a Context-Free Grammar as follows: Which ONE of the following statements is TRUE?
An array of length with distinct elements is said to be bitonic if there is an index such that is sorted in the non-decreasing order and is sorted in the non-increasing order. Which ONE of the following represents the best possible asymptotic bound for the worst-case number of comparisons …
Let be the set of all functions from to . Define the binary relation on as follows: if and only if , where . Which of the following statement(s) is/are TRUE?
Given the following Karnaugh Map for a Boolean function : Which one or more of the following Boolean expression(s) represent(s) ?
Consider a stack data structure into which we can PUSH and POP records. Assume that each record pushed in the stack has a positive integer key and that all keys are distinct. We wish to augment the stack data structure with an time MIN operation that returns a pointer to the record with smallest key present in the stack without deleting the …
Consider a system of linear equations where and . Suppose has an LU decomposition, , where …
Consider the following relational schema along with all the functional dependencies that hold on them. Which of the following statement(s) is/are TRUE?
Consider a demand paging system with three frames, and the following page reference string: 1 2 3 4 5 4 1 6 4 5 1 3 2 . The contents of the frames are as follows initially and after each reference (from left to right): …
consists of all active processes in an operating system. consists of single instances of distinct types of resources in the system. The resource allocation graph has the following assignment and claim edges. Assignment edges: …
Three floating point numbers , and are stored in three registers , and , respectively in single precision format as given below in hexadecimal: …
Which of the following Boolean algebraic equation(s) is/are CORRECT?
