ISRO 2020 · Insertion Sort

MCQ · 1 mark · Problem PROG-SORT-0066

If an array A contains the items 10, 4, 7, 23, 67, 12 and 5 in that order, what will be the resultant array A after third pass of insertion sort?
  1. A
    67,12,10,5,4,7,23
  2. B
    4,7,10,23,67,12,5
  3. C
    4,5,7,67,10,12,23
  4. D
    10,7,4,67,23,12,5

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/331354/isro2020-33

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com