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 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 _________
Consider a computer system with support. The module is transferring one -bit character in one cycle from a device to memory through cycle stealing at regular intervals. Consider a processor. If processor cycles are used for , the data transfer rate of the device is …
A data file consisting of student-records is stored on a hard disk with block size of bytes. The data file is sorted on the primary key . The size of a record pointer for this disk is bytes. Each student-record has a candidate key attribute called of size bytes. Suppose an index file …
For a given biased coin, the probability that the outcome of a toss is a head is . This coin is tossed times. Let denote the random variable whose value is the number of times that head appeared in these tosses. The standard deviation of (rounded to decimal place) is _________
Consider the following function: int SomeFunction (int x, int y) { if ((x==1) || (y==1)) return 1; if (x==y) return x; if (x > y) return SomeFunction(x-y, y); if (y > x) return SomeFunction (x, y-x); } The value returned by is __________
Suppose that is a matrix such that every solution of the equation is a scalar multiple of . The rank of is __________
Suppose that is a continuous function on the interval and a differentiable function in the interval such that for every in the interval, . If , then is at most __________
Assume a two-level inclusive cache hierarchy, and , where is the larger of the two. Consider the following statements. : Read misses in a write through cache do not result in writebacks of dirty lines to the : Write allocate policy must be used in conjunction with write through caches and no-write …
