GATE CSE 2026 — Previous Year Questions
Real questions from the 2026 paper with options and answers. Take a timed test →
52 questions · page 1 of 3
Q1 · Computer Science & IT
An urn contains one red ball and one blue ball. At each step, a ball is picked uniformly at random from the urn , and this ball together with another ball of the same color is put back in the urn. The probability that there are equal number of red and blue balls after two steps is- A.1/4
- B.1/3
- C.1/2
- D.2/3
Show answer / उत्तर देखें
Answer: B 1/3
Official GATE 2026 answer key: (B).Q2 · Computer Science & IT
For 𝑛 > 1, the maximum multiplicity of any eigenvalue of an 𝑛 × 𝑛 matrix with elements from ℝ is- A.𝑛
- B.𝑛 − 1
- C.1
- D.𝑛 + 1
Show answer / उत्तर देखें
Answer: A 𝑛
Official GATE 2026 answer key: (A).Q3 · Computer Science & IT
Match each addressing mode in List I with a data element or an element of a data structure (in a high-level language) in List II: List I List II P. Immediate 1. Element of an array Q. Indirect 2. Pointer R. Base with index 3. Element of a record S. Base with offset/displacement 4. Constant- A.P–4, Q–3, R–1, S–2
- B.P–4, Q–2, R–1, S–3
- C.P–1, Q–4, R–3, S–2
- D.P–2, Q–3, R–1, S–4
Show answer / उत्तर देखें
Answer: B P–4, Q–2, R–1, S–3
Official GATE 2026 answer key: (B).Q4 · Computer Science & IT
Consider a processor P whose in struction set architecture is the load -store architecture. The instruction format is such that the first operand of any instruction is the destination operand. Which one of the following sequences of instructions corresponds to the high-level language statement Z = X + Y ? Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers.- A.ADD Z, X, Y
- B.LOAD R0, X ADD Z, R0, Y
- C.ADD R0, X, Y STORE Z, R0
- D.LOAD R0, X LOAD R1, Y ADD R2, R0, R1 STORE Z, R2
Show answer / उत्तर देखें
Answer: D LOAD R0, X LOAD R1, Y ADD R2, R0, R1 STORE Z, R2
Official GATE 2026 answer key: (D).Q5 · Computer Science & IT
Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?- A.Read-after-read
- B.Read-after-write
- C.Write-after-read
- D.Write-after-write
Show answer / उत्तर देखें
Answer: B Read-after-write
Official GATE 2026 answer key: (B).Q6 · Computer Science & IT
Consider the following recurrence relations: For all 𝑛 > 1, 𝑇1(𝑛) = 4𝑇1 (𝑛2) + 𝑇2(𝑛) 𝑇2(𝑛) = 5𝑇2 (𝑛4) + Θ(log2 𝑛) Assume that for all 𝑛 ≤ 1, 𝑇1(𝑛) = 1 and 𝑇2(𝑛) = 1. Which one of the following options is correct?- A.𝑇1(𝑛) = Θ(𝑛2)
- B.𝑇1(𝑛) = Θ(𝑛2 log2 𝑛)
- C.𝑇1(𝑛) = Θ(𝑛log4 5)
- D.𝑇1(𝑛) = Θ(𝑛log4 5 log2 𝑛)
Show answer / उत्तर देखें
Answer: A 𝑇1(𝑛) = Θ(𝑛2)
Official GATE 2026 answer key: (A).Q7 · Computer Science & IT
With respect to a TCP connection between a client and a server , which one of the following statements is true?- A.The client and server use a two-way handshake mechanism before the start of data transmission
- B.The server cannot initiate closing of the connection before the client initiates closing of the connection
- C.The TCP connection is half-duplex
- D.The client and server can initiate closing of the connection at the same time
Show answer / उत्तर देखें
Answer: D The client and server can initiate closing of the connection at the same time
Official GATE 2026 answer key: (D).Q8 · Computer Science & IT
Consider the real valued variables X, Y and Z represented using the IEEE 754 single- precision floating-point format. The binary representations of X and Y in hexadecimal notation are as follows: X: 35C00000 Y: 34A00000 Let 𝑍 = 𝑋 + 𝑌. Which one of the following is the binary representation of 𝑍, in hexadecimal notation?- A.35C80000
- B.35CC0000
- C.35E80000
- D.35EC0000
Show answer / उत्तर देखें
Answer: C 35E80000
Official GATE 2026 answer key: (C).Q9 · Computer Science & IT
Let 𝑃 be the set of all integers from 1 to 15. Consider any order of insertion of the elements of 𝑃 into a binary search tree that creates a complete binary tree. Which one of the following elements can NEVER be the third element that is inserted?- A.4
- B.2
- C.10
- D.5
Show answer / उत्तर देखें
Answer: D 5
Official GATE 2026 answer key: (D).Q10 · Computer Science & IT
Let 𝐺(𝑉, 𝐸) be an undirected, edge-weighted graph with integer weights. The weight of a path is the sum of the weights of the edges in that path. The length of a path is the number of edges in that path. Let 𝑠 ∈ 𝑉 be a vertex in 𝐺. For every 𝑢 ∈ 𝑉 and for every 𝑘 ≥ 0, let 𝑑𝑘(𝑢) denote the weight of a shortest path (in terms of weight) from 𝑠 to 𝑢 of length at most 𝑘. If there is no path from 𝑠 to 𝑢 of length at most 𝑘, then 𝑑𝑘(𝑢) = ∞. Consider the statements: S1: For every 𝑘 ≥ 0 and 𝑢 ∈ 𝑉, 𝑑𝑘+1(𝑢) ≤ 𝑑𝑘(𝑢). S2: For every (𝑢, 𝑣) ∈ 𝐸, if (𝑢, 𝑣) is part of a shortest path (in terms of weight) from 𝑠 to 𝑣, then for every 𝑘 ≥ 0, 𝑑𝑘(𝑢) ≤ 𝑑𝑘(𝑣). Which one of the following options is correct?- A.Only S1 is true
- B.Only S2 is true
- C.Both S1 and S2 are true
- D.Neither S1 nor S2 is true
Show answer / उत्तर देखें
Answer: A Only S1 is true
Official GATE 2026 answer key: (A).Q11 · Computer Science & IT
A TCP sender successfully establishes a connection with a TCP receiver and starts the transmission of segments. The TCP congestion control mechanism’s slow-start threshold is set to 10000 segments. Assume that the round -trip time is fixed at 1 millisecond. Assume that the sender always has data to send, the segments are numbered from 1, and no segment is lost. Let 𝑡 denote the time (in milliseconds) at which the transmission of segment number 2000 starts. Which one of the following options is correct?- A.9 ≤ 𝑡 < 10
- B.10 ≤ 𝑡 < 11
- C.11 ≤ 𝑡 < 12
- D.12 ≤ 𝑡 < 13
Show answer / उत्तर देखें
Answer: B 10 ≤ 𝑡 < 11
Official GATE 2026 answer key: (B).Q12 · Computer Science & IT
Consider the implementation of sliding window protocol over a lossless link, with a window size of 𝑊 frames, where each frame is of size 1000 bits (including header). The bandwidth of the link is 100 kbps (1k = 103) and the one-way propagation delay is 100 milliseconds. Assume that processing times at the sender and receiver are zero and the transmission time of acknowledgements is also zero. Which one of the following options gives the minimum size of 𝑊 (in number of frames) required to achieve 100% link utilization?- A.10
- B.21
- C.20
- D.11
Show answer / उत्तर देखें
Answer: B 21
Official GATE 2026 answer key: (B).Q13 · Computer Science & IT
For two different persons 𝑥 and 𝑦, the predicate 𝑀(𝑥, 𝑦) denotes that x knows y. Consider the following statement. There is a person who does not know anyone else, but that person is known by everyone else. Which one of the following expressions represents the above statement?- A.(∃𝑦)(∀𝑥) ((𝑥 ≠ 𝑦) → (𝑀(𝑥, 𝑦) ∧ ¬𝑀(𝑦, 𝑥)))
- B.(∀𝑦)(∃𝑥) ((𝑥 ≠ 𝑦) → (𝑀(𝑥, 𝑦) ∧ ¬𝑀(𝑦, 𝑥)))
- C.(∃𝑦)(∃𝑥) ((𝑥 ≠ 𝑦) → (𝑀(𝑥, 𝑦) ∧ ¬𝑀(𝑦, 𝑥)))
- D.(∀𝑦)(∀𝑥) ((𝑥 ≠ 𝑦) → (𝑀(𝑥, 𝑦) ∧ ¬𝑀(𝑦, 𝑥)))
Show answer / उत्तर देखें
Answer: A (∃𝑦)(∀𝑥) ((𝑥 ≠ 𝑦) → (𝑀(𝑥, 𝑦) ∧ ¬𝑀(𝑦, 𝑥)))
Official GATE 2026 answer key: (A).Q14 · Computer Science & IT
The set T represents various tr aversals over binary tree. The s et S represents the order of visiting nodes during a traversal. T S I: Inorder L: left subtree, node, right subtree II: Preorder M: node, left subtree, right subtree III: Postorder N: left subtree, right subtree, node Which one of the following is the correct match from T to S ?- A.I – L, II – M, III – N
- B.I – M, II – L, III – N
- C.I – N, II – M, III – L
- D.I – L, II – N, III – M
Show answer / उत्तर देखें
Answer: A I – L, II – M, III – N
Official GATE 2026 answer key: (A).Q15 · Computer Science & IT
The probability density function 𝑓(𝑥) of a random variable 𝑋 which takes real values is 𝑓(𝑥) = 13√2𝜋 exp (− 𝑥218), 𝑥 ∈ (−∞, +∞) Which one of the following statements is correct about the random variable 𝑋 ?- A.𝑋 is an exponential random variable
- B.𝑋 is a normal random variable
- C.𝑋 is a Poisson random variable
- D.𝑋 is a uniform random variable
Show answer / उत्तर देखें
Answer: B 𝑋 is a normal random variable
Official GATE 2026 answer key: (B).Q16 · Computer Science & IT
Which one of the following options is not a property of Boolean Algebra? Note: + is OR operation, . is AND operation, and ′ is NOT operation- A.𝑎 + 𝑏 = 𝑏 + 𝑎
- B.𝑎 . 𝑎′ = 1
- C.𝑎 + 𝑎′ = 1
- D.𝑎 . 𝑏 = 𝑏 . 𝑎
Show answer / उत्तर देखें
Answer: B 𝑎 . 𝑎′ = 1
Official GATE 2026 answer key: (B).Q17 · Computer Science & IT
In C runtime environment, which one of the following is stored in heap?- A.A static variable declared inside a function
- B.An array of integers declared inside a function
- C.A dynamically allocated array of integers created using malloc() function call
- D.Return address of a function
Show answer / उत्तर देखें
Answer: C A dynamically allocated array of integers created using malloc() function call
Official GATE 2026 answer key: (C).Q18 · Computer Science & IT
Consider the following two statements about interrupt handling mechanisms in a CPU. S1: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine ( ISR) when compared to that in a vectored interrupt mechanism. S2: In daisy -chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt. Which one of the following options is correct with respect to S1 and S2 ?- A.Both S1 and S2 are true
- B.Both S1 and S2 are false
- C.S1 is true and S2 is false
- D.S1 is false and S2 is true
Show answer / उत्तर देखें
Answer: C S1 is true and S2 is false
Official GATE 2026 answer key: (C).Q19 · Computer Science & IT
Consider concurrent execution of two transaction s 𝑇1 and 𝑇2 in a DBMS, both of which access a data object 𝐴. For these two transactions to not conflict on 𝐴, which one of the following statements must be true?- A.Both 𝑇1 and 𝑇2 only read 𝐴
- B.𝑇1 reads 𝐴 and 𝑇2 writes 𝐴
- C.𝑇1 writes 𝐴 and 𝑇2 reads 𝐴
- D.Both 𝑇1 and 𝑇2 write 𝐴
Show answer / उत्तर देखें
Answer: A Both 𝑇1 and 𝑇2 only read 𝐴
Official GATE 2026 answer key: (A).Q20 · Computer Science & IT
Consider a file of size 4 million bytes being transferred between two hosts connected via a path consisting of three consecutive link s of bandwidth 2 Mbps, 500 kbps, and 1 Mbps, respectively. All processing delays and propagation delays are negligible. Assume that there is no other background traffic over the path and no other additional overhead to transfer the file. Which one of the following is the total time (in seconds) to transfer the file? Note: 1M=106, 1k=103- A.731
- B.64
- C.8
- D.16
Show answer / उत्तर देखें
Answer: B 64
Official GATE 2026 answer key: (B).Q21 · Computer Science & IT
Which one of the following protocols may need to broadcast some of its messages?- A.SMTP
- B.FTP
- C.DHCP
- D.HTTP
Show answer / उत्तर देखें
Answer: C DHCP
Official GATE 2026 answer key: (C).Q22 · Computer Science & IT
Which one of the following CPU scheduling algorithms cannot be preemptive?- A.Shortest Remaining Time First (SRTF) Scheduling
- B.First Come First Serve (FCFS) Scheduling
- C.Round Robin Scheduling
- D.Priority Scheduling
Show answer / उत्तर देखें
Answer: B First Come First Serve (FCFS) Scheduling
Official GATE 2026 answer key: (B).Q23 · Computer Science & IT
Consider the following functions, where 𝑛 is a positive integer. 𝑛1/3 , log(𝑛) , log(𝑛!), 2log(𝑛) Which one of the following options lists the functions in increasing order of asymptotic growth rate? Note: Assume the base of log to be 2.- A.log(𝑛) , 𝑛1/3, 2log(𝑛) , log(𝑛!)
- B.𝑛1/3, log(𝑛) , log(𝑛!) , 2log(𝑛)
- C.log(𝑛) , 𝑛1/3, log(𝑛!) , 2log(𝑛)
- D.2log(𝑛) , 𝑛1/3, log(𝑛) , log(𝑛!)
Show answer / उत्तर देखें
Answer: A log(𝑛) , 𝑛1/3, 2log(𝑛) , log(𝑛!)
Official GATE 2026 answer key: (A).Q24 · Computer Science & IT
Consider a complete graph 𝐾𝑛 with 𝑛 vertices (𝑛 > 4). Note that multiple spanning trees can be constructed over 𝐾𝑛. Each of these spanning trees is represented as a set of edges. The Jaccard coefficient between any two sets is defined as the ratio of the size of the intersection of the two sets to the size of the union of the two sets. Which one of the following options gives the lowest possible value for the Jaccard coefficient between any two spanning trees of 𝐾𝑛 ?- A.1 𝑛
- B.1 2𝑛 − 3
- C.0
- D.1 𝑛 − 1
Show answer / उत्तर देखें
Answer: C 0
Official GATE 2026 answer key: (C).Q25 · Computer Science & IT
Let 𝐺 be a weighted directed acyclic graph with 𝑚 edges and 𝑛 vertices. Given 𝐺 and a source vertex 𝑠 in 𝐺, which one of the following options gives the worst case time complexity of the fastest algorithm to find the lengths of shortest paths from 𝑠 to all vertices that are reachable from 𝑠 in 𝐺?- A.Θ(𝑚 + 𝑛)
- B.Θ(𝑚 + 𝑛 log(𝑛))
- C.Θ(𝑛𝑚)
- D.Θ(𝑛3)
Show answer / उत्तर देखें
Answer: A Θ(𝑚 + 𝑛)
Official GATE 2026 answer key: (A).