Q.

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,

A. 5 and 4
B. 1 and 4
C. 0 and 4
D. 4 and 1
Answer» D. 4 and 1
3.3k
0
Do you find this helpful?
23

View all MCQs in

Data Structures (DS)

Discussion

No comments yet

Related MCQs