Explore topic-wise MCQs in Data Structure.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Data Structure knowledge and support exam preparation. Choose a topic below to get started.

1.

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» E.
2.

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

A. 5 and 4
B. 4 and 5
C. 2 and 4
D. 2 and 5
Answer» B. 4 and 5