Skip to content

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
Official PYQ2013Operating SystemConcurrency and SynchronizationMCQ · 1 mark
A certain computation generates two arrays a and b such that a[i]=f(i)a[i] = f(i) for 0≤i<n0 \leq i < n and b[i]=g(a[i])b[i] = g(a[i]) for 0≤i<n0 \leq i < n. Suppose this computation is decomposed into two concurrent processes XX and YY such that XX computes the array aa and YY computes the array bb. The processes employ two binary semaphores RR …
Official PYQ2013Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 1 mark
In an IPv4 datagram, the MM bit is 00, the value of HLENHLEN is 1010, the value of total length is 400400 and the fragment offset value is 300300. The position of the datagram, the sequence numbers of the first and the last bytes of the payload, respectively are:
Official PYQ2013Software Engineering (Historical)MCQ · 1 mark
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 mm 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?
Official PYQ2013Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
Determine the maximum length of the cable (in km) for transmitting data at a rate of 500500 Mbps in an Ethernet LAN with frames of size 10,00010,000 bits. Assume the signal speed in the cable to be 2,00,0002,00,000 km/s.
Official PYQ2013DatabasesTuple Calculus and SQLMCQ · 1 mark
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 90%90\% in the course numbered 107” …
Official PYQ2013Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the DFA AA given below. Which of the following are FALSE? Complement of L(A)L(A) is context-free. L(A)=L((11∗0+0)(0+1)∗0∗1∗)L(A) = L((11^*0+0)(0 + 1)^*0^*1^*) For the language accepted by A,AA, A is the minimal DFA. AA accepts all strings over {0,1}\{0, 1\} of length at least 22.
Official PYQ2013Operating SystemConcurrency and SynchronizationMCQ · 1 mark
A shared variable xx, initialized to zero, is operated on by four concurrent processes W,X,Y,ZW, X, Y, Z as follows. Each of the processes WW and XX reads xx from memory, increments by one, stores it to memory, and then terminates. Each of the processes YY and ZZ reads xx from memory, decrements by two, stores it to memory, and then …
Official PYQ2013Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Consider the following languages. L1={0p1q0r∣p,q,r≥0}L_1 = \left \{ 0^p1^q0^r \mid p,q,r \geq 0 \right \} L2={0p1q0r∣p,q,r≥0,p≠r}L_2 = \left \{ 0^p1^q0^r \mid p,q,r \geq 0, p\neq r \right \} Which one of the following statements is FALSE?
Official PYQ2013Operating SystemFile SystemsMCQ · 1 mark
Consider a hard disk with 1616 recording surfaces (0−15)(0-15) having 1638416384 cylinders (0−16383)(0-16383) and each cylinder contains 6464 sectors (0−63)(0-63). Data storage capacity in each sector is 512512 bytes. Data are organized cylinder-wise and the addressing format is ⟨cylinder no.,surface no.,sector no.⟩\langle \text{cylinder no.}, \text{surface no.}, \text{sector no.} \rangle . A …
Official PYQ2013AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
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
Official PYQ2013AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
The number of elements that can be sorted in Θ(log⁡n)\Theta(\log n) time using heap sort is
Official PYQ2013Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
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?
Official PYQ2013Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
What is the logical translation of the following statement? "None of my friends are perfect."
Official PYQ2013Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
The line graph L(G)L(G) of a simple graph GG is defined as follows: There is exactly one vertex v(e)v(e) in L(G)L(G) for each edge ee in GG. For any two edges ee and e′e' in GG, L(G)L(G) has an edge between v(e)v(e) and v(e′)v(e'), if and only if ee and e′e' are incident with the same vertex in GG. Which of the following statements …
Official PYQ2013Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
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.
Official PYQ2013Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
Consider an undirected random graph of eight vertices. The probability that there is an edge between a pair of vertices is 12.\dfrac{1}{2}. What is the expected number of unordered cycles of length three?
Official PYQ2013Numerical Methods (Historical)MCQ · 1 mark
Function ff is known at the following points: xx 0 0.3 0.6 0.9 1.2 1.5 1.8 2.1 2.4 2.7 3.0 f(x)f(x) 0 0.09 0.36 0.81 1.44 2.25 3.24 4.41 5.76 7.29 9.00 The value of ∫03f(x)dx\int_{0}^{3} f(x) \text{d}x computed using the trapezoidal rule is
Official PYQ2013Digital LogicBoolean AlgebraMCQ · 1 mark
Which one of the following expressions does NOT represent exclusive NOR of xx and yy?
Official PYQ2013Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
In a kk-way set associative cache, the cache is divided into vv sets, each of which consists of kk lines. The lines of a set are placed in sequence one after another. The lines in set ss are sequenced before the lines in set (s+1)(s+1). The main memory blocks are numbered 0 onwards. The main memory block numbered jj must be mapped to any one of …
Official PYQ2013AlgorithmsShortest Paths (Dijkstra, Bellman-Ford)MCQ · 1 mark
What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of n vertices?