Skip to content

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
Official PYQ2005Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
A device with data transfer rate 1010 KB/sec is connected to a CPU. Data is transferred byte-wise. Let the interrupt overhead be 4μ4\musec. 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 …
Official PYQ2005Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
Consider a disk drive with the following specifications: 1616 surfaces, 512512 tracks/surface, 512512 sectors/track, 11 KB/sector, rotation speed 30003000 rpm. The disk is operated in cycle stealing mode whereby whenever one 44 byte word is ready it is sent to memory; similarly, for writing, the disk interface reads a 44 byte word from the …
Official PYQ2005Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
A 55 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 …
Official PYQ2005Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a direct mapped cache of size 3232 KBKB with block size 3232 bytesbytes. The CPUCPU generates 3232 bitbit addresses. The number of bits needed for cache indexing and the number of tag bits are respectively,
Official PYQ2005Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
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. …
Official PYQ2005Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a three word machine instruction ADDA[R0],@B\text{ADD} A[R_0], @B The first operand (destination) “A[R0]”“A[R_0]” uses indexed addressing mode with R0R_0 as the index register. The second operand (source) “@B”“@B” uses indirect addressing mode. AA and BB are memory addresses residing at the second and third words, respectively. The first word of the …
Official PYQ2005Digital LogicCombinational CircuitsMCQ · 1 mark
Consider the following circuit: The flip-flops are positive edge triggered DD FF\textsf{FF}s. Each state is designated as a two-bit string Q0Q1Q_0Q_1. Let the initial state be 00.00. The state transition sequence is
Official PYQ2005Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
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?
Official PYQ2005Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider the grammar: S→(S)∣aS \rightarrow (S) \mid a Let the number of states in SLR (1), LR(1) and LALR(1) parsers for the grammar be n1,n2n_1, n_2 and n3n_3 respectively. The following relationship holds good:
Official PYQ2005Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider the grammar: E→E+n∣E×n∣nE \rightarrow E + n \mid E \times n \mid n For a sentence n+n×nn + n \times n, the handles in the right-sentential form of the reduction are:
Official PYQ2005Theory of ComputationUndecidabilityMCQ · 1 mark
Consider the following two problems on undirected graphs: α\alpha: Given G(V,E)G(V, E), does GG have an independent set of size |V| - 44? β\beta: Given G(V,E)G(V, E), does GG have an independent set of size 55? Which one of the following is TRUE?
Official PYQ2005Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Consider the languages: L1={wwR∣w∈{0,1}∗}L_1 = \left\{ww^R \mid w \in \{0, 1\}^* \right\} L2={w#wR∣w∈{0,1}∗}L_2 = \left\{w\text{\#}w^R \mid w \in \{0, 1\}^* \right\}, where #\text{\#} is a special symbol L3={ww∣w∈{0,1}∗}L_3 = \left\{ww \mid w \in \{0, 1\}^* \right\} Which one of the following is TRUE?
Official PYQ2005Theory of ComputationUndecidabilityMCQ · 1 mark
Let L1L_1 be a recursive language, and let L2L_2 be a recursively enumerable but not a recursive language. Which one of the following is TRUE?
Official PYQ2005Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Consider the languages: L1={anbncm∣n,m>0}L_1 = \left\{ a^nb^nc^m \mid n,m >0\right\} and L2={anbmcm∣n,m>0}L_2 = \left\{a^nb^mc^m\mid n, m > 0\right\} Which one of the following statements is FALSE?
Official PYQ2005Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Let NfN_f and NpN_p denote the classes of languages accepted by non-deterministic finite automata and non-deterministic push-down automata, respectively. Let DfD_f and DpD_p denote the classes of languages accepted by deterministic finite automata and deterministic push-down automata respectively. Which one of the following is TRUE?
Official PYQ2005Theory of ComputationUndecidabilityMCQ · 1 mark
Consider three decision problems P1P_1, P2P_2 and P3P_3. It is known that P1P_1 is decidable and P2P_2 is undecidable. Which one of the following is TRUE?
Official PYQ2005AlgorithmsShortest Paths (Dijkstra, Bellman-Ford)MCQ · 1 mark
Let G(V,E)G(V,E) 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:
Official PYQ2005AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Suppose T(n)=2T(n2)+nT(n) =2T (\frac{n}{2}) + n, T(0)=T(1)=1T(0) = T(1) =1 Which one of the following is FALSE?
Official PYQ2005Programming and Data StructuresTreesMCQ · 1 mark
In a complete kk-ary tree, every internal node has exactly kk children. The number of leaves in such a tree with nn internal node is:
Official PYQ2005Programming and Data StructuresBinary Search TreesMCQ · 1 mark
How many distinct binary search trees can be created out of 44 distinct keys?