Question 77Asked in BEL PE Computer Science, 20 Dec 2025 (5:00 PM)

Consider the array [5, 1, 4, 2, 8]. After the first pass of Bubble Sort to sort array elements in ascending order, what is the state of the array?

  1. A[1, 2, 5, 4, 8]
  2. B[1, 4, 2, 5, 8]
  3. C[1, 2, 4, 5, 8]
  4. D[5, 4, 2, 1, 8]
Show answerHide answer

Correct answer: (B) [1, 4, 2, 5, 8]

From BEL PE Computer Science PYQ, 20 Dec 2025 (5:00 PM)

This is question 77 of BEL PE Computer Science PYQ, 20 Dec 2025 (5:00 PM). 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.