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 device with data transfer rate KB/sec is connected to a CPU. Data is transferred byte-wise. Let the interrupt overhead be sec. The byte transfer time between the device interface register and CPU or memory is negligible. What is the minimum performance gain of operating the device under interrupt mode over operating it under …
Consider a disk drive with the following specifications: surfaces, tracks/surface, sectors/track, KB/sector, rotation speed rpm. The disk is operated in cycle stealing mode whereby whenever one byte word is ready it is sent to memory; similarly, for writing, the disk interface reads a byte word from the …
A stage pipelined CPU has the following sequence of stages: IF – instruction fetch from instruction memory RD – Instruction decode and register read EX – Execute: ALU operation for data and address computation MA – Data memory access – for write access, the register read at RD state is used. WB – Register write back Consider the following sequence of …
Consider a direct mapped cache of size with block size . The generates addresses. The number of bits needed for cache indexing and the number of tag bits are respectively,
Match each of the high level language statements given on the left hand side with the most natural addressing mode from those listed on the right hand side. …
Consider a three word machine instruction The first operand (destination) uses indexed addressing mode with as the index register. The second operand (source) uses indirect addressing mode. and are memory addresses residing at the second and third words, respectively. The first word of the …
Consider the following circuit: The flip-flops are positive edge triggered s. Each state is designated as a two-bit string . Let the initial state be The state transition sequence is
The following diagram represents a finite state machine which takes as input a binary number from the least significant bit. Which of the following is TRUE?
Consider the grammar: Let the number of states in SLR (1), LR(1) and LALR(1) parsers for the grammar be and respectively. The following relationship holds good:
Consider the grammar: For a sentence , the handles in the right-sentential form of the reduction are:
Consider the following two problems on undirected graphs: : Given , does have an independent set of size |V| - ? : Given , does have an independent set of size ? Which one of the following is TRUE?
Consider the languages: , where is a special symbol Which one of the following is TRUE?
Let be a recursive language, and let be a recursively enumerable but not a recursive language. Which one of the following is TRUE?
Consider the languages: and Which one of the following statements is FALSE?
Let and denote the classes of languages accepted by non-deterministic finite automata and non-deterministic push-down automata, respectively. Let and denote the classes of languages accepted by deterministic finite automata and deterministic push-down automata respectively. Which one of the following is TRUE?
Consider three decision problems , and . It is known that is decidable and is undecidable. Which one of the following is TRUE?
Let be an undirected graph with positive edge weights. Dijkstra’s single source shortest path algorithm can be implemented using the binary heap data structure with time complexity:
Suppose , Which one of the following is FALSE?
In a complete -ary tree, every internal node has exactly children. The number of leaves in such a tree with internal node is:
How many distinct binary search trees can be created out of distinct keys?
