For the following question, how will the array elements look like after second pass using Insertion sorting algorithm? 34, 8, 64, 51, 32, 21

28 views
  • 8, 21, 32, 34, 51, 64
  • 8, 32, 34, 51, 64, 21
  • 8, 34, 51, 64, 32, 21
  • 8, 34, 64, 51, 32, 21 (Correct Answer)

Explanation

After swapping elements in the second pass, the array will look like, 8, 34, 64, 51, 32, 21.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs