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
Which of the following are regular sets?
Match the following NFAs with the regular expressions they correspond to: P Q R S
Match the following: …
Which of the following statements is false?
We have a binary heap on elements and wish to insert more elements (not necessarily one after another) into this heap. The total time required for this is
You are given the postorder traversal, , of a binary search tree on the elements . You have to determine the unique binary search tree that has as its postorder traversal. What is the time complexity of the most efficient algorithm for doing this?
Dijkstra's single source shortest path algorithm when run from vertex in the above graph, computes the correct shortest path distance to
The subset-sum problem is defined as follows: Given a set of positive integers and a positive integer , determine whether there is a subset of whose elements sum to . An algorithm solves this problem in time. Which of the following statements is false?
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 be the number of comparisons required to sort elements. Then
A B-tree of order is built from scratch by successive insertions. What is the maximum number of node splitting operations that may take place?
The minimum number of comparisons required to determine if an integer appears more than times in a sorted array of integers is
Consider the following functions: Which of the following statements about the asymptotic behavior of , and is true?
In an instruction execution pipeline, the earliest that the data TLB (Translation Lookaside Buffer) can be accessed is:
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
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
For inclusion to hold between two cache levels and in a multi-level cache hierarchy, which of the following are necessary? must be write-through cache must be a write-through cache The associativity of must be greater than that of The cache must be at least as large as the cache
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
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
For a magnetic disk with concentric circular tracks, the seek latency is not linearly proportional to the seek distance due to
and are two propositions. Which of the following logical expressions are equivalent?
