GATE Assistant

Past questions › Data Science and Artificial Intelligence › GATE 2025

GATE 2025 · DA · MSQ · 1 mark · Programming, Data Structures and Algorithms › Basic Sorting

GATE 2025 Data Science and Artificial Intelligence question: Suppose that insertion sort is applied to the array [1, 3, 5, 7, 9, 11, x, 15, 13] and…

Suppose that insertion sort is applied to the array and it takes exactly two swaps to sort the array. Select all possible values of .

  1. (A)

    10

  2. (B)

    12

  3. (C)

    14

  4. (D)

    16

Show answer

Official answer: A,C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion