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 PYQ2008Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which of the following are regular sets? {anb2m∣n≥0,m≥0}\left\{a^nb^{2m} \mid n \geq 0, m \geq 0 \right\} {anbm∣n=2m}\left\{a^nb^m \mid n =2m \right\} {anbm∣n≠m}\left\{a^nb^m \mid n \neq m \right\} {xcy∣x,y,∈{a,b}∗}\left\{xcy \mid x, y, \in \left\{a, b\right\} ^* \right\}
Official PYQ2008Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Match the following NFAs with the regular expressions they correspond to: P Q R S ϵ+0(01∗1+00)∗01∗\epsilon + 0\left(01^*1+00\right)^*01^* ϵ+0(10∗1+00)∗0\epsilon + 0\left(10^*1+00\right)^*0 ϵ+0(10∗1+10)∗1\epsilon + 0\left(10^*1+10\right)^*1 ϵ+0(10∗1+10)∗10∗\epsilon + 0\left(10^*1+10\right)^*10^*
Official PYQ2008Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Match the following: …
Official PYQ2008Theory of ComputationUndecidabilityMCQ · 1 mark
Which of the following statements is false?
Official PYQ2008AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
We have a binary heap on nn elements and wish to insert nn more elements (not necessarily one after another) into this heap. The total time required for this is
Official PYQ2008Programming and Data StructuresBinary Search TreesMCQ · 1 mark
You are given the postorder traversal, PP, of a binary search tree on the nn elements 1,2,…,n1, 2, \dots, n. You have to determine the unique binary search tree that has PP as its postorder traversal. What is the time complexity of the most efficient algorithm for doing this?
Official PYQ2008AlgorithmsShortest Paths (Dijkstra, Bellman-Ford)MCQ · 1 mark
Dijkstra's single source shortest path algorithm when run from vertex aa in the above graph, computes the correct shortest path distance to
Official PYQ2008AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The subset-sum problem is defined as follows: Given a set SS of nn positive integers and a positive integer WW, determine whether there is a subset of SS whose elements sum to WW. An algorithm QQ solves this problem in O(nW)O(nW) time. Which of the following statements is false?
Official PYQ2008AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Consider the Quicksort algorithm. Suppose there is a procedure for finding a pivot element which splits the list into two sub-lists each of which contains at least one-fifth of the elements. Let T(n)T(n) be the number of comparisons required to sort nn elements. Then
Official PYQ2008DatabasesFile Organization and Indexing (B and B+ Trees)MCQ · 1 mark
A B-tree of order 44 is built from scratch by 1010 successive insertions. What is the maximum number of node splitting operations that may take place?
Official PYQ2008AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The minimum number of comparisons required to determine if an integer appears more than n2\frac{n}{2} times in a sorted array of nn integers is
Official PYQ2008AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the following functions: f(n)=2nf(n) = 2^n g(n)=n!g(n) = n! h(n)=nlog⁡nh(n) = n^{\log n} Which of the following statements about the asymptotic behavior of f(n)f(n), g(n)g(n) and h(n)h(n) is true?
Official PYQ2008Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
In an instruction execution pipeline, the earliest that the data TLB (Translation Lookaside Buffer) can be accessed is:
Official PYQ2008Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Which of the following are NOT true in a pipelined processor? Bypassing can handle all RAW hazards Register renaming can eliminate all register carried WAR hazards Control hazard penalties can be eliminated by dynamic branch prediction
Official PYQ2008Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
The use of multiple register windows with overlap causes a reduction in the number of memory accesses for: Function locals and parameters Register saves and restores Instruction fetches
Official PYQ2008Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
For inclusion to hold between two cache levels L1L_1 and L2L_2 in a multi-level cache hierarchy, which of the following are necessary? L1L_1 must be write-through cache L2L_2 must be a write-through cache The associativity of L2L_2 must be greater than that of L1L_1 The L2L_2 cache must be at least as large as the L1L_1 cache
Official PYQ2008Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which of the following must be true for the RFE (Return From Exception) instruction on a general purpose processor? It must be a trap instruction It must be a privileged instruction An exception cannot be allowed to occur during execution of an RFE instruction
Official PYQ2008Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which of the following is/are true of the auto-increment addressing mode? It is useful in creating self-relocating code If it is included in an Instruction Set Architecture, then an additional ALU is required for effective address calculation The amount of increment depends on the size of the data item accessed
Official PYQ2008Operating SystemI/O SchedulingMCQ · 1 mark
For a magnetic disk with concentric circular tracks, the seek latency is not linearly proportional to the seek distance due to
Official PYQ2008Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
PP and QQ are two propositions. Which of the following logical expressions are equivalent? P∨¬QP ∨ \neg Q ¬(¬P∧Q)\neg(\neg P ∧ Q) (P∧Q)∨(P∧¬Q)∨(¬P∧¬Q)(P ∧ Q) ∨ (P ∧ \neg Q) ∨ (\neg P ∧ \neg Q) (P∧Q)∨(P∧¬Q)∨(¬P∧Q)(P ∧ Q) ∨ (P ∧ \neg Q) ∨ (\neg P ∧ Q)