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
Six students , with distinct heights, compare their heights and make the following observations. : is taller than . : is the shortest of all. : is taller than only one student. : …
Let be a connected undirected weighted graph. Consider the following two statements. : There exists a minimum weight edge in which is present in every minimum spanning tree of . : If every edge in has distinct weight, then has a unique minimum spanning tree. Which one of the following options is correct?
Let be a binary min-heap consisting of elements implemented as an array. What is the worst case time complexity of an optimal algorithm to find the maximum element in ?
The format of the single-precision floating point representation of a real number as per the standard is as follows: Which one of the following choices is correct with respect to the smallest normalized positive number …
Consider the following program: int main () { Integer x; return 0; } Which one of the following phases in a seven-phase compiler will throw an error?
Consider the following statements and about the relational data model: : A relation scheme can have at most one foreign key. : A foreign key in a relation scheme cannot be used to refer to tuples of Which one of the following choices is correct?
Which one of the following circuits implements the Boolean function given below? , where is the minterm.
Consider the three-way handshake mechanism followed during connection establishment between hosts and . Let and be two random -bit starting sequence numbers chosen by and respectively. Suppose sends a connection request message to with a segment having …
What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size ?
Let be an arbitrary regular language accepted by a minimal with states. Which one of the following languages must necessarily be accepted by a minimal with states?
Consider the following program. #include <stdio.h> int main() { int arr[4][5]; int i, j; for (i=0; i<4; i++) { for (j=0; j<5; j++) { arr[i][j] = 10 * i + j; } } printf(“%d”, *(arr[1]+9)); return 0; } What is the output of the above program?
Consider the following sets, where : : Set of all matrices with entries from the set : Set of all functions from the set to the set Which of the following choice(s) is/are correct?
Let be a regular language and be a context-free language. Which of the following languages is/are context-free?
In the context of compilers, which of the following is/are an intermediate representation of the source program?
Which of the following statement(s) is/are correct in the context of scheduling?
Choose the correct choice(s) regarding the following proportional logic assertion :
Consider a complete binary tree with nodes. Let denote the set of first elements obtained by performing Breadth-First Search starting from the root. Let denote the set of first elements obtained by performing Depth-First Search starting from the root. The value of is …
Consider the following deterministic finite automaton The number of strings of length accepted by the above automaton is ___________
If and are two decimal digits and , the decimal value of is ___________
Consider a set-associative cache of size bytes with cache block size of bytes. Assume that the cache is byte-addressable and a -bit address is used for accessing the cache. If the width of the tag field is bits, the associativity of the cache is _________
