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 PYQ2002AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Consider the following algorithm for searching for a given number xx in an unsorted array A[1..n]A[1..n] having nn distinct values: Choose an ii at random from 1..n1..n If A[i]=xA[i] = x, then Stop else Goto 1; Assuming that xx is present in AA, what is the expected number of comparisons made by the algorithm before it terminates?
Official PYQ2002Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following declaration of a two-dimensional array in C: char a[100][100]a[100][100]; Assuming that the main memory is byte-addressable and that the array is stored starting from memory address 00, the address of a[40][50]a [40][50] is:
Official PYQ2002Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
Horizontal microprogramming:
Official PYQ2002Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
The performance of a pipelined processor suffers if:
Official PYQ2002Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
The finite state machine described by the following state diagram with AA as starting state, where an arc label is x/y,x/y, and xx stands for 11-bit input and yy stands for 22-bit output
Official PYQ2002Digital LogicBoolean AlgebraMCQ · 1 mark
Let f(A,B)=A′+Bf(A,B) = A'+B. Simplified expression for function f(f(x+y,y),z)f(f(x+y, y), z) is
Official PYQ2002Digital LogicCombinational CircuitsMCQ · 1 mark
Consider the following multiplexer where I0,I1,I2,I3I0, I1, I2, I3 are four data input lines selected by two address line combinations A1A0=00,01,10,11A1A0=00,01,10,11 respectively and ff is the output of the multiplexor. EN is the Enable input. The function f(x,y,z)f(x,y,z) implemented by the above circuit is
Official PYQ2002Digital LogicCombinational CircuitsMCQ · 1 mark
Consider the following logic circuit whose inputs are functions f1,f2,f3f_1, f_2, f_3 and output is ff Given that f1(x,y,z)=Σ(0,1,3,5)f_1(x,y,z) = \Sigma (0,1,3,5) f2(x,y,z)=Σ(6,7),f_2(x,y,z) = \Sigma (6,7), and f(x,y,z)=Σ(1,4,5).f(x,y,z) = \Sigma (1,4,5). f3f_3 is
Official PYQ2002Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
The maximum number of edges in a nn-node undirected graph without self loops is
Official PYQ2002Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
In the absolute addressing mode:
Official PYQ2002Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
The optimal page replacement algorithm will select the page that
Official PYQ2002Operating SystemCPU SchedulingMCQ · 1 mark
Which of the following scheduling algorithms is non-preemptive?
Official PYQ2002Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
In 2′s2's complement addition, overflow
Official PYQ2002DatabasesTuple Calculus and SQLMCQ · 1 mark
With regards to the expressive power of the formal relational query languages, which of the following statements is true?
Official PYQ2002DatabasesNormal FormsMCQ · 1 mark
Relation RR with an associated set of functional dependencies, FF, is decomposed into BCNF\text{BCNF}. The redundancy (arising out of functional dependencies) in the resulting set of relations is
Official PYQ2002Programming and Data StructuresProgramming in CMCQ · 1 mark
The results returned by function under value-result and reference parameter passing conventions
Official PYQ2002Programming and Data StructuresProgramming in CMCQ · 1 mark
In the C language:
Official PYQ2002Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
Sign extension is a step in
Official PYQ2002Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
The decimal value 0.250.25
Official PYQ2002Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
The 2′s2's complement representation of the decimal value −15-15 is