English

Which of the following is true for bubble sort of 16, 30, 14, 19? -

Advertisements
Advertisements

Question

Which of the following is true for bubble sort of 16, 30, 14, 19?

Options

  • 16, 30, 14, 19 – 16, 30, 19, 14 – 30, 19, 16, 14

  • 16, 14, 19, 30 – 16, 19, 14, 30 – 19, 16, 14, 30

  • 30, 19, 16, 14 – 30, 19, 16, 14 – 30, 19, 16, 14

  • 16, 14, 30, 19 – 16, 14, 19, 30 – 14, 16, 19, 30

MCQ

Solution

16, 14, 30, 19 – 16, 14, 19, 30 – 14, 16, 19, 30

Explanation:

16, 14, 30, 19 – 16, 14, 19, 30 – 14, 16, 19, 30 displays bubble sort in ascending order.

shaalaa.com
Bubble Sort
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×