Question 94Asked in BEL PE Computer Science, 17 Dec 2023 (8:30 AM)

What is the total number of swaps performed to sort the following list of elements 18, 32, 17, 19, 41, 15, 23 in an ascending order, using bubble sort?

  1. A10
  2. B13
  3. C12
  4. D11
Show answerHide answer

Correct answer: (A) 10

From BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM)

This is question 94 of BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.