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 computer system has a three-level memory hierarchy, with access time and hit ratios as shown below: …
A hard disk is connected to a MHz processor through a DMA controller. Assume that the initial set-up of a DMA transfer takes clock cycles for the processor, and assume that the handling of the interrupt at DMA completion requires clock cycles for the processor. The hard disk has a transfer rate of Kbytes/sec and average block …
A micro program control unit is required to generate a total of control signals. Assume that during any micro instruction, at most two control signals are active. Minimum number of bits required in the control word to generate the required control signals will be:
What is the equivalent Boolean expression in product-of-sums form for the Karnaugh map given in Fig
Consider the following state table for a sequential machine. The number of states in the minimized machine will be …
Consider the circuit in figure. implements
Consider the circuit in below figure which has a four bit binary number as input and a five bit binary number, as output.
Four jobs to be executed on a single processor system arrive at time in the order . Their burst CPU time requirements are time units respectively. The completion time of under round robin scheduling with time slice of one time unit is
A solution to the Dining Philosophers Problem which avoids deadlock is to
A memory is managed using variable partitions but no compaction. It currently has two partitions of sizes and respectively. The smallest allocation request in that could be denied is for
The correct matching for the following pairs is …
Which of the following macros can put a macro assembler into an infinite loop? .MACRO M1, X .IF EQ, X ;if X=0 then M1 X + 1 .ENDC .IF NE, X ;if X ≠ O then .WORD X ;address (X) is stored here .ENDC .ENDM .MACRO M2, X .IF EQ, X M2 X .ENDC .IF NE, X .WORD X + 1 .ENDC .ENDM
Quick-sort is run on two inputs shown below to sort in ascending order taking first element as pivot Let and be the number of comparisons made for the inputs (i) and (ii) respectively. Then,
The average number of key comparisons required for a successful search for sequential search on items is
A binary search tree is generated by inserting in order the following integers: The number of nodes in the left subtree and right subtree of the root respectively is
The recurrence relation has the solution equal to
The minimum number of interchanges needed to convert the array into a max-heap is
The grammar whose productions are is ambiguous because if a then if b then c:= d has more than two parse …
If and are context free languages and a regular set, one of the languages below is not necessarily a context free language. Which one?
The probability that top and bottom cards of a randomly shuffled deck are both aces is
