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 PYQ2004AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The time complexity of the following C function is (assume n>0n > 0) int recursive (int n) { if(n == 1) return (1); else return (recursive (n-1) + recursive (n-1)); }
Official PYQ2004Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
Let G1=(V,E1)G_1=(V,E_1) and G2=(V,E2)G_2 =(V,E_2) be connected graphs on the same vertex set VV with more than two vertices. If G1∩G2=(V,E1∩E2)G_1 \cap G_2= (V,E_1\cap E_2) is not a connected graph, then the graph G1∪G2=(V,E1∪E2)G_1\cup G_2=(V,E_1\cup E_2)
Official PYQ2004Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
A point is randomly selected with uniform probability in the X−YX-Y plane within the rectangle with corners at (0,0),(1,0),(1,2)(0,0), (1,0), (1,2) and (0,2).(0,2). If pp is the length of the position vector of the point, the expected value of p2p^{2} is
Official PYQ2004Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
How many graphs on nn labeled vertices exist which have at least (n2−3n)2\frac{(n^2 - 3n)}{ 2} edges ?
Official PYQ2004Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
Two nn bit binary strings, S1S_1 and S2S_2 are chosen randomly with uniform probability. The probability that the Hamming distance between these strings (the number of bit positions where the two strings differ) is equal to dd is
Official PYQ2004Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
The minimum number of colours required to colour the following graph, such that no two adjacent vertices are assigned the same color, is
Official PYQ2004Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
In an M×NM \times N matrix all non-zero entries are covered in aa rows and bb columns. Then the maximum number of non-zero entries, such that no two are on the same row or column, is
Official PYQ2004Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
Mala has the colouring book in which each English letter is drawn two times. She wants to paint each of these 5252 prints with one of kk colours, such that the colour pairs used to colour any two letters are different. Both prints of a letter can also be coloured with the same colour. What is the minimum value of kk that satisfies this requirement?
Official PYQ2004Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
An examination paper has 150150 multiple choice questions of one mark each, with each question having four choices. Each incorrect answer fetches −0.25-0.25 marks. Suppose 10001000 students choose all their answers randomly with uniform probability. The sum total of the expected marks obtained by all these students is
Official PYQ2004Engineering MathematicsPartial Orders and LatticesMCQ · 1 mark
The inclusion of which of the following sets into S={{1,2},{1,2,3},{1,3,5},{1,2,4},{1,2,3,4,5}}S = \left\{ \left\{1, 2\right\}, \left\{1, 2, 3\right\}, \left\{1, 3, 5\right\}, \left\{1, 2, 4\right\}, \left\{1, 2, 3, 4, 5\right\} \right\} is necessary and sufficient to make SS a complete lattice under the partial order defined by set containment?
Official PYQ2004Engineering MathematicsMonoids and GroupsMCQ · 1 mark
The following is the incomplete operation table of a 4−4-element group. …
Official PYQ2004Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
How many solutions does the following system of linear equations have? −x+5y=−1-x + 5y = -1 x−y=2x - y = 2 x+3y=3x + 3y = 3
Official PYQ2004Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
A 4-stage pipeline has the stage delays as 150150, 120120, 160160 and 140140 nanosecondsnanoseconds, respectively. Registers that are used between the stages have a delay of 55 nanosecondsnanoseconds each. Assuming constant clocking rate, the total time taken to process 10001000 data items on this pipeline will be:
Official PYQ2004Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
The following propositional statement is (P  ⟹  (Q∨R))  ⟹  ((P∧Q)  ⟹  R)\left(P \implies \left(Q \vee R\right)\right) \implies \left(\left(P \wedge Q \right)\implies R\right)
Official PYQ2004Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
A hard disk with a transfer rate of 1010 Mbytes/second is constantly transferring data to memory using DMA. The processor runs at 600600 MHz, and takes 300300 and 900900 clock cycles to initiate and complete DMA transfer respectively. If the size of the transfer is 2020 Kbytes, what is the percentage of processor time consumed for the transfer …
Official PYQ2004Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
The microinstructions stored in the control memory of a processor have a width of 2626 bits. Each microinstruction is divided into three fields: a micro-operation field of 1313 bits, a next address field (X),(X), and a MUX select field (Y).(Y). There are 88 status bits in the input of the MUX. How many bits are there in the XX and YY fields, and …
Official PYQ2004Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
Let A=11111010A = 1111 1010 and B=00001010B = 0000 1010 be two 8−bit8-bit 2’s2’s complement numbers. Their product in 2’s2’s complement is
Official PYQ2004Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a small two-way set-associative cache memory, consisting of four blocks. For choosing the block to be replaced, use the least recently used (LRU) scheme. The number of cache misses for the following sequence of block addresses is: 8,12,0,12,88, 12, 0, 12, 8.
Official PYQ2004Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following program segment for a hypothetical CPU having three user registers R1,R2R_1, R_2 and R3.R_3. …
Official PYQ2004Digital LogicComputer ArithmeticMCQ · 1 mark
A 4-bit carry look ahead adder, which adds two 4-bit numbers, is designed using AND, OR, NOT, NAND, NOR gates only. Assuming that all the inputs are available in both complemented and uncomplemented forms and the delay of each gate is one time unit, what is the overall propagation delay of the adder? Assume that the carry network has been implemented using …