Question: The given array is arr = {1,2,3,4,5}. (bubble sort is implemented with a flag variable)The number of iterations in selection sort and bubble sort respectively are,

Options

A : 5 and 4

B : 1 and 4

C : 0 and 4

D : 4 and 1

Click to view Correct Answer

Next

Data Structure Selection Sort more questions

What percentage of the total cellular mass is water?

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 = {3,4,5,2,1}. The number of....

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....

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