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
Consider the following algorithm for searching for a given number in an unsorted array having distinct values: Choose an at random from If , then Stop else Goto 1; Assuming that is present in , what is the expected number of comparisons made by the algorithm before it terminates?
Consider the following declaration of a two-dimensional array in C: char ; Assuming that the main memory is byte-addressable and that the array is stored starting from memory address , the address of is:
Horizontal microprogramming:
The performance of a pipelined processor suffers if:
The finite state machine described by the following state diagram with as starting state, where an arc label is and stands for -bit input and stands for -bit output
Let . Simplified expression for function is
Consider the following multiplexer where are four data input lines selected by two address line combinations respectively and is the output of the multiplexor. EN is the Enable input. The function implemented by the above circuit is
Consider the following logic circuit whose inputs are functions and output is Given that and is
The maximum number of edges in a -node undirected graph without self loops is
In the absolute addressing mode:
The optimal page replacement algorithm will select the page that
Which of the following scheduling algorithms is non-preemptive?
In complement addition, overflow
With regards to the expressive power of the formal relational query languages, which of the following statements is true?
Relation with an associated set of functional dependencies, , is decomposed into . The redundancy (arising out of functional dependencies) in the resulting set of relations is
The results returned by function under value-result and reference parameter passing conventions
In the C language:
Sign extension is a step in
The decimal value
The complement representation of the decimal value is
