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
A computer uses virtual address, physical address, and a three–level paged page table organization. The page table base register stores the base address of the first-level table which occupies exactly one page. Each entry of stores the base address of a page of the second-level table …
The following code segment is executed on a processor which allows only register operands in its instructions. Each instruction can have atmost two source operands and one destination operand. Assume that all variables are dead after this code segment. c = a + b; d = c * a; e = c + a; x = c * c; if (x > a) { y = a * a; } else { d = d * d; e = e * e; } …
The procedure given below is required to find and replace certain characters inside an input character string supplied in array . The characters to be replaced are supplied in array , while their respective replacement characters are supplied in array . Array has a fixed length of five characters, while arrays and …
The current erection cost of a structure is Rs. If the labour wages per day increase by of the current wages and the working hours decrease by of the current period, then the new cost of erection in Rs. is
A tourist covers half of his journey by train at , half of the remainder by bus at and the rest by cycle at . The average speed of the tourist in during his entire journey is
After several defeats in wars, Robert Bruce went in exile and wanted to commit suicide. Just before committing suicide, he came across a spider attempting tirelessly to have its net. Time and again, the spider failed but that did not deter it to refrain from making attempts. Such attempts by the spider made Bruce curious. Thus, Bruce started observing the …
Out of all the -digit integers between and a -digit number has to be selected at random. What is the probability that the selected number is not divisible by ?
Choose the grammatically INCORRECT sentence:
Find the sum of the expression
Were you a bird, you ___________________ in the sky.
What will be the maximum sum of ?
Complete the sentence: Universalism is to particularism as diffuseness is to _______________.
Which one of the following options is the closest in meaning to the word given below? Nadir
Relation has eight attributes . Fields of contain only atomic values. = is a set of functional dependencies so that is exactly the set of that hold for . How many candidate keys does the relation have?
The procedure given below is required to find and replace certain characters inside an input character string supplied in array . The characters to be replaced are supplied in array , while their respective replacement characters are supplied in array . Array has a fixed length of five characters, while arrays and …
The following code segment is executed on a processor which allows only register operands in its instructions. Each instruction can have atmost two source operands and one destination operand. Assume that all variables are dead after this code segment. c = a + b; d = c * a; e = c + a; x = c * c; if (x > a) { y = a * a; } else { d = d * d; e = e * e; } …
A RAM chip has a capacity of 1024 words of 8 bits each (1K × 8). The number of 2 × 4 decoders with enable line needed to construct a 16K × 16 RAM from 1K × 8 RAM is
The preorder traversal sequence of a binary search tree is . Which one of the following is the postorder traversal sequence of the same tree?
Which of the following is/are undecidable? is a CFG. Is ? is a CFG. Is ? is a Turing machine. Is regular? is a DFA and is an NFA. Is ?
Consider the following two sets of items of an grammar.Which of the following statements related to merging of the two sets in the corresponding …
