GATE DA 2025 · Question 29 · Programming, Data Structures and Algorithms · Multiple select (MSQ) · 1 mark · no negative marks

Suppose that insertion sort is applied to the array [1, 3, 5, 7, 9, 11, x, 15, 13] and it takes exactly two swaps to sort the array. Select all possible values of x.

  1. (A) 10
  2. (B) 12
  3. (C) 14
  4. (D) 16
Answer

Answer (A), (C)

Answer from the official GATE DA 2025 answer key.

The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes