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 certain computation generates two arrays a and b such that for and for . Suppose this computation is decomposed into two concurrent processes and such that computes the array and computes the array . The processes employ two binary semaphores …
In an IPv4 datagram, the bit is , the value of is , the value of total length is and the fragment offset value is . The position of the datagram, the sequence numbers of the first and the last bytes of the payload, respectively are:
The following figure represents access graphs of two modules M1 and M2. The filled circles represent methods and the unfilled circles represent attributes. If method is moved to module M2 keeping the attributes where they are, what can we say about the average cohesion and coupling between modules in the system of two modules?
Determine the maximum length of the cable (in km) for transmitting data at a rate of Mbps in an Ethernet LAN with frames of size bits. Assume the signal speed in the cable to be km/s.
Consider the following relational schema. Students(rollno: integer, sname: string) Courses(courseno: integer, cname: string) Registration(rollno: integer, courseno: integer, percent: real) Which of the following queries are equivalent to this query in English? “Find the distinct names of all students who score more than in the course numbered 107” …
Consider the DFA given below. Which of the following are FALSE? Complement of is context-free. For the language accepted by is the minimal DFA. accepts all strings over of length at least .
A shared variable , initialized to zero, is operated on by four concurrent processes as follows. Each of the processes and reads from memory, increments by one, stores it to memory, and then terminates. Each of the processes and reads from memory, decrements by two, stores it to memory, and then …
Consider the following languages. Which one of the following statements is FALSE?
Consider a hard disk with recording surfaces having cylinders and each cylinder contains sectors . Data storage capacity in each sector is bytes. Data are organized cylinder-wise and the addressing format is . A …
Consider the following function: int unknown(int n){ int i, j, k=0; for (i=n/2; i<=n; i++) for (j=2; j<=n; j=j*2) k = k + n/2; return (k); } The return value of the function is
The number of elements that can be sorted in time using heap sort is
Consider the following sequence of micro-operations. MBR ← PC MAR ← X PC ← Y Memory ← MBR Which one of the following is a possible operation performed by this sequence?
What is the logical translation of the following statement? "None of my friends are perfect."
The line graph of a simple graph is defined as follows: There is exactly one vertex in for each edge in . For any two edges and in , has an edge between and , if and only if and are incident with the same vertex in . Which of the following statements …
Which of the following statements is/are TRUE for undirected graphs? P: Number of odd degree vertices is even. Q: Sum of degrees of all vertices is even.
Consider an undirected random graph of eight vertices. The probability that there is an edge between a pair of vertices is What is the expected number of unordered cycles of length three?
Function is known at the following points: 0 0.3 0.6 0.9 1.2 1.5 1.8 2.1 2.4 2.7 3.0 0 0.09 0.36 0.81 1.44 2.25 3.24 4.41 5.76 7.29 9.00 The value of computed using the trapezoidal rule is
Which one of the following expressions does NOT represent exclusive NOR of and ?
In a -way set associative cache, the cache is divided into sets, each of which consists of lines. The lines of a set are placed in sequence one after another. The lines in set are sequenced before the lines in set . The main memory blocks are numbered 0 onwards. The main memory block numbered must be mapped to any one of …
What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of n vertices?
