Question: The given array is arr = {3,4,5,2,1}. The number of iterations in bubble sort and selection sort respectively are,

Options

A : 5 and 4

B : 4 and 5

C : 2 and 4

D : 2 and 5

Click to view Correct Answer

Previous || Next

Data Structure Selection Sort more questions

What percent of total global carbon does the atmosphere contain?

Preferred Homogenization pressure is _______

For a 100 hp 250 V, compound dc motor with....

A current of [2 + sqrt{2} sin (314t + 30)....

The given array is arr = {1,2,3,4,5}. (bubble sort is....

At which of the following values of pressure a solid....

The average thickness of the lime concrete laid in lime....

The thickness of half brick is __________

The minimum depth of concrete at the crown in jack....

The outlet pipe in the septic tank is kept about....

Data Structure Adjacency List more Online Exam Quiz

Data Structure Recursion

Data Structure Red Black Tree

Data Structure Reverse Word Stack

Data Structure Rod Cutting

Data Structure Search Element Array Recursion 1

Data Structure Single Linked Lists

Data Structure Skip List

Data Structure Sparse Array

Data Structure Splay Tree

Data Structure Stack Array