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 PYQ2018Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that cwnd stands for the TCP congestion window and MSS window denotes the Maximum Segments Size: The cwnd increases by 22 MSS on every successful acknowledgment The cwnd approximately doubles on every successful acknowledgment The cwnd increases …
Official PYQ2018Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Match the following: FieldLength in bitsP. UDP Header’s Port NumberI. 48Q. Ethernet MAC AddressII. 8R. IPv6 Next HeaderIII. 32S. TCP Header’s Sequence NumberIV. 16\begin{array}{|l|l|}\hline \textbf{Field} & \textbf{Length in bits} \\ \hline \text{P. UDP Header's Port Number} & \text{I. 48} \\ \text{Q. Ethernet MAC Address} & \text{II. 8} \\ \text{R. IPv6 Next Header} & \text{III. 32} \\ \text{S. TCP Header's Sequence Number} & \text{IV. 16} \\ \hline \end{array}
Official PYQ2018DatabasesER-modelMCQ · 1 mark
In an Entity-Relationship (ER) model, suppose RR is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate totally in RR and that the cardinality of E1 is greater than the cardinality of E2. Which one of the following is true about RR?
Official PYQ2018DatabasesTuple Calculus and SQLMCQ · 1 mark
Consider the following two tables and four queries in SQL. Book (isbn, bname), Stock(isbn, copies) Query 1: SELECT B.isbn, S.copies FROM Book B INNER JOIN Stock S ON B.isbn=S.isbn; Query 2: SELECT B.isbn, S.copies FROM Book B LEFT OUTER JOIN Stock S ON B.isbn=S.isbn; Query 3: SELECT B.isbn, S,copies FROM Book B RIGHT OUTER JOIN Stock S ON B.isbn=S.isbn Query …
Official PYQ2018Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is MM units if the corresponding memory page is available in memory, and DD units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is …
Official PYQ2018Operating SystemSystem CallsMCQ · 1 mark
The following are some events that occur after a device controller issues an interrupt while process LL is under execution. P. The processor pushes the process status of LL onto the control stack Q. The processor finishes the execution of the current instruction R. The processor executes the interrupt service routine S. The processor pops the process …
Official PYQ2018Compiler DesignLexical AnalysisMCQ · 1 mark
Which one of the following statements is FALSE?
Official PYQ2018Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Let NN be an NFA with nn states. Let kk be the number of states of a minimal DFA which is equivalent to NN. Which one of the following is necessarily true?
Official PYQ2018Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
The set of all recursively enumerable languages is:
Official PYQ2018Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following processor design characteristics: Register-to-register arithmetic operations only Fixed-length instruction format Hardwired control unit Which of the characteristics above are used in the design of a RISC processor?
Official PYQ2018Digital LogicBoolean AlgebraMCQ · 1 mark
Let ⊕\oplus and ⊙\odot denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT?
Official PYQ2018Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
A queue is implemented using a non-circular singly linked list. The queue has a head pointer and a tail pointer, as shown in the figure. Let nn denote the number of nodes in the queue. Let 'enqueue' be implemented by inserting a new node at the head, and 'dequeue' be implemented by deletion of a node from the tail. Which one of the following is the time …
Official PYQ2018Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following C program: #include<stdio.h> struct Ournode{ char x, y, z; }; int main() { struct Ournode p={'1', '0', 'a'+2}; struct Ournode *q=&p; printf("%c, %c", *((char*)q+1), *((char*)q+2)); return 0; } The output of this program is:
Official PYQ2018Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
Which one of the following is a closed form expression for the generating function of the sequence {an}\{a_n\}, where an=2n+3 for all n=0,1,2,…a_n = 2n +3 \text{ for all } n=0, 1, 2, \dots?
Official PYQ2018General AptitudeMCQ · 2 marks
In the figure below, ∠DEC+∠BFC\angle DEC + \angle BFC is equal to _____
Official PYQ2018General AptitudeMCQ · 2 marks
A six sided unbiased die with four green faces and two red faces is rolled seven times. Which of the following combinations is the most likely outcome of the experiment?
Official PYQ2018General AptitudeMCQ · 2 marks
In a party, 60%60\% of the invited guests are male and 40%40\% are female.If 80%80\% of the invited guests attended the party and if all the invited female guests attended, what would be the ratio of males to females among the attendees in the party?
Official PYQ2018General AptitudeMCQ · 2 marks
If pqr≠0pqr \ne 0 and p−x=1q,q−y=1r,r−z=1p,p^{-x}=\dfrac{1}{q},q^{-y}=\dfrac{1}{r},r^{-z}=\dfrac{1}{p}, what is the value of the product xyzxyz ?
Official PYQ2018General AptitudeMCQ · 1 mark
 What is the missing number in the following sequence?\text{ What is the missing number in the following sequence?} 2, 12, 60, 240, 720, 1440,                 ‾,02,\,12,\,60,\,240,\,720,\,1440,\,\underline{\;\;\;\;\;\;\;\;},0
Official PYQ2018General AptitudeMCQ · 2 marks
In appreciation of the social improvements completed in a town, a wealthy philanthropist decided to gift Rs  750Rs\; 750 to each male senior citizen in the town and Rs  1000Rs\; 1000 to each female senior citizen. Altogether, there were 300 senior citizens eligible for this gift. However, only 89th\dfrac{8}{9}^{\text{th}} of the eligible men and …