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
Which of the following describes a handle (as applicable to LR-parsing) appropriately?
Which of the following is true for the language
Given , and in canonical sum of products form (in decimal) for the circuit then is
The most efficient algorithm for finding the number of connected components in an undirected graph on vertices and edges has time complexity
Let denote number system radix. The only value(s) of that satisfy the equation is/are
In the Karnaugh map shown below, denotes a don’t care term. What is the minimal form of the function represented by the Karnaugh map?
In the IEEE floating point representation the hexadecimal value corresponds to
The following system of equations has a unique solution. The only possible value(s) for is/are
If are subsets of the universal set U, then is
equals
Which of the following statements are true? Every left-recursive grammar can be converted to a right-recursive grammar and vice-versa All -productions can be removed from any context-free grammar by suitable transformations The language generated by a context-free grammar all of whose productions are of the form or …
Consider the following C program that attempts to locate an element in an array using binary search. The program is erroneous. f (int Y[10] , int x) { int i, j, k; i= 0; j = 9; do { k = (i+ j) / 2; if( Y[k] < x) i = k;else j = k; } while (Y[k] != x) && (i < j)) ; if(Y[k] == x) printf(" x is in the array ") ; else printf(" x is …
Consider the following diagram The minimum number of tables needed to represent , , , , is
Consider a file of records. Each record is long and its key field is of size . The file is ordered on a non-key field, and the file organization is unspanned. The file is stored in a file system with block size , and the size of a block pointer is . If the secondary …
Consider the following segment of C-code: int j, n; j = 1; while (j <= n) j = j * 2; The number of comparisons made in the execution of the loop for any is:
Consider the following program segment. Here and are the general purpose registers. …
Consider the following program segment. Here and are the general purpose registers. …
Suppose the letters have probabilities , respectively. What is the average length of the Huffman code for the letters ?
Consider the following Finite State Automaton: The minimum state automaton equivalent to the above FSA has the following number of states:
Consider the CFG with as the non-terminal alphabet, as the terminal alphabet, as the start symbol and the following set of production rules: For …
