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 PYQ2009Operating SystemDeadlockMCQ · 1 mark
Consider a system with 44 types of resources R1R1 (33 units), R2R2 (22 units), R3R3 (33 units), R4R4 (22 units). A non-preemptive resource allocation policy is used. At any given instance, a request is not entertained if it cannot be completely satisfied. Three processes P1P1, P2P2, P3P3 request the resources as follows if …
Official PYQ2009Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a 44-way set associative cache (initially empty) with total 1616 cache blocks. The main memory consists of 256256 blocks and the request for memory blocks are in the following order: 0,255,1,4,3,8,133,159,216,129,63,8,48,32,73,92,155.0, 255, 1, 4, 3, 8, 133, 159, 216, 129, 63, 8, 48, 32, 73, 92, 155. Which one of the following memory block will NOT be in cache if LRU replacement policy is …
Official PYQ2009Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Consider a 44 stage pipeline processor. The number of cycles needed by the four instructions I1,I2,I3,I4I1, I2, I3, I4 in stages S1,S2,S3,S4S1, S2, S3, S4 is shown below: …
Official PYQ2009Digital LogicSequential CircuitsMCQ · 1 mark
Given the following state table of an FSM with two states AA and BB,one input and one output. …
Official PYQ2009Web Technologies (Historical)MCQ · 1 mark
Consider a HTML table definition given below: <table border =1> <tr> <td rowspan=2> ab </td> <td colspan=2> cd </td> </tr> <tr> <td> ef </td> <td rowspan=2> gh </td> </tr> <tr> <td colspan=2> ik </td> </tr> </table> The number of rows in each column …
Official PYQ2009Software Engineering (Historical)MCQ · 1 mark
The coupling between different modules of a software is categorized as follows: Content coupling Common coupling Control coupling Stamp coupling Data coupling Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desirable) as follows:
Official PYQ2009AlgorithmsAlgorithm Design: Dynamic ProgrammingMCQ · 1 mark
Consider the program below: #include <stdio.h> int fun(int n, int *f_p) { int t, f; if (n <= 1) { *f_p = 1; return 1; } t = fun(n-1, f_p); f = t + *f_p; *f_p = t; return f; } int main() { int x = 15; printf("%d/n", fun(5, &x)); return 0; } The value printed is:
Official PYQ2009Compiler DesignLexical AnalysisMCQ · 1 mark
Match all items in Group 1 with the correct options from those given in Group 2. …
Official PYQ2009Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Which one of the following is FALSE?
Official PYQ2009Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Which one of the following languages over the alphabet {0,1}\{0,1\} is described by the regular expression: (0+1)∗0(0+1)∗0(0+1)∗(0+1)^*0(0+1)^*0(0+1)^*?
Official PYQ2009Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Let πA\pi_A be a problem that belongs to the class NP. Then which one of the following is TRUE?
Official PYQ2009AlgorithmsShortest Paths (Dijkstra, Bellman-Ford)MCQ · 1 mark
Which of the following statement(s) is/are correct regarding Bellman-Ford shortest path algorithm? P: Always finds a negative weighted cycle, if one exists. Q: Finds whether any negative weighted cycle is reachable from the source.
Official PYQ2009Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
S→aSa∣bSb∣a∣bS \to aSa \mid bSb\mid a\mid b The language generated by the above grammar over the alphabet {a,b}\{a,b\} is the set of:
Official PYQ2009AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
What is the number of swaps required to sort nn elements using selection sort, in the worst case?
Official PYQ2009Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
The essential content(s) in each entry of a page table is / are
Official PYQ2009Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
In which one of the following page replacement policies, Belady's anomaly may occur?
Official PYQ2009Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
A CPU generally handles an interrupt by executing an interrupt service routine:
Official PYQ2009Digital LogicCombinational CircuitsMCQ · 1 mark
How many 32K×132K \times 1 RAM chips are needed to provide a memory capacity of 256K256K bytes?
Official PYQ2009Digital LogicCombinational CircuitsMCQ · 1 mark
What is the minimum number of gates required to implement the Boolean function (AB+C)\text{(AB+C)} if we have to use only 2-input NOR2\text{-input NOR} gates?
Official PYQ2009Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
(1217)8(1217)_8 is equivalent to