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 PYQ2010Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
A computer system has an L1L1 cache, an L2L2 cache, and a main memory unit connected as shown below. The block size in L1L1 cache is 44 words. The block size in L2L2 cache is 1616 words. The memory access times are 22 nanoseconds, 2020 nanoseconds and 200200 nanoseconds for L1L1 cache, L2L2 cache and the main memory unit respectively. …
Official PYQ2010AlgorithmsMinimum Spanning TreesMCQ · 1 mark
Consider a complete undirected graph with vertex set {0,1,2,3,4}\{0, 1, 2, 3, 4\}. Entry WijW_{ij} in the matrix WW below is the weight of the edge {i,j}\{i, j\} …
Official PYQ2010Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
A hash table of length 1010 uses open addressing with hash function h(k)=k mod   10h(k) = k \: \mod \: 10, and linear probing. After inserting 66 values into an empty hash table, the table is shown as below …
Official PYQ2010Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Consider a network with 66 routers R1R1 to R6R6 connected with links having weights as shown in the following diagram. Suppose the weights of all unused links are changed to 22 and the distance vector algorithm is used again until all routing tables stabilize. How many links will now remain unused?
Official PYQ2010General AptitudeMCQ · 1 mark
Given digits 2,2,3,3,3,4,4,4,42, 2, 3, 3, 3, 4, 4, 4, 4 how many distinct 44 digit numbers greater than 30003000 can be formed?
Official PYQ2010General AptitudeMCQ · 1 mark
55 skilled workers can build a wall in 2020 days; 88 semi-skilled workers can build a wall in 2525 days; 1010 unskilled workers can build a wall in 3030 days. If a team has 22 skilled, 66 semi-skilled and 55 unskilled workers, how long it will take to build the wall?
Official PYQ2010General AptitudeMCQ · 1 mark
Modern warfare has changed from large scale clashes of armies to suppression of civilian populations. Chemical agents that do their work silently appear to be suited to such warfare; and regretfully, there exist people in military establishments who think that chemical agents are useful tools for their cause. Which of the following statements best sums up …
Official PYQ2010General AptitudeMCQ · 1 mark
Hari(H), Gita(G), Irfan(I) and Saira(S) are siblings (i.e., brothers and sisters). All were born on 1st1^{\text{st}} January. The age difference between any two successive siblings (that is born one after another) is less than three years. Given the following facts: Hari's age ++ Gita's age >> Irfan's age ++ Saira's age The age difference …
Official PYQ2010General AptitudeMCQ · 1 mark
If 137+276=435137 + 276 = 435 how much is 731+672?731+672?
Official PYQ2010General AptitudeMCQ · 1 mark
The question below consists of a pair of related words followed by four pairs of words. Select the pair that best expresses the relation in the original pair. Unemployed : Worker
Official PYQ2010General AptitudeMCQ · 1 mark
2525 persons are in a room. 1515 of them play hockey, 1717 of them play football and 1010 of them play both hockey and football. Then the number of persons playing neither hockey nor football is:
Official PYQ2010General AptitudeMCQ · 1 mark
Choose the most appropriate word from the options given below to complete the following sentence: If we manage to __________ our natural resources, we would leave a better planet for our children.
Official PYQ2010General AptitudeMCQ · 1 mark
Which of the following options is the closest in meaning to the word given below: Circuitous
Official PYQ2010General AptitudeMCQ · 1 mark
Choose the most appropriate word from the options given below to complete the following sentence: His rather casual remarks on politics ________ his lack of seriousness about the subject.
Official PYQ2010Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Consider a network with 66 routers R1\textbf{R1} to R6\textbf{R6} connected with links having weights as shown in the following diagram. All the routers use the distance vector based routing algorithm to update their routing tables. Each router starts with its routing table initialized to contain an entry for each neighbor with the weight of the …
Official PYQ2010Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
A hash table of length 1010 uses open addressing with hash function h(k)=kmod  10h(k) = k \mod 10, and linear probing. After inserting 66 values into an empty hash table, the table is shown as below …
Official PYQ2010AlgorithmsMinimum Spanning TreesMCQ · 1 mark
Consider a complete undirected graph with vertex set {0,1,2,3,4}\{0, 1, 2, 3, 4\}. Entry WijW_{ij} in the matrix WW below is the weight of the edge {i,j}\{i, j\} …
Official PYQ2010Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
A computer system has an L1L1 cache, an L2L2 cache, and a main memory unit connected as shown below. The block size in L1L1 cache is 44 words. The block size in L2L2 cache is 1616 words. The memory access times are 22 nanoseconds, 2020 nanoseconds and 200200 nanoseconds for L1L1 cache, L2L2 cache and the main memory unit respectively. …
Official PYQ2010Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 1 mark
Suppose computers AA and BB have IPIP addresses 10.105.1.11310.105.1.113 and 10.105.1.9110.105.1.91 respectively and they both use same netmask NN. Which of the values of NN given below should not be used if AA and BB should belong to the same network?
Official PYQ2010Operating SystemDeadlockMCQ · 1 mark
A system has nn resources R0,…,Rn−1R_0, \dots,R_{n-1}, and kk processes P0,…,Pk−1P_0, \dots, P_{k-1}. The implementation of the resource request logic of each process PiP_i is as follows: if(i%2==0){\text{if} (i\%2==0) \{ if(i<n) request Ri;\quad\text{if} (i<n) \text{ request } R_i; if(i+2<n) request Ri+2;}\quad\text{if} (i+2 < n) \text{ request } R_{i+2}; \} else{\text{else} \{ …