KnowledgeBoat Logo
|

Computer Applications

An array with 3 elements is arranged in a ascending order as follows:

An array with 3 elements is arranged in a ascending order as follows. ICSE 2025 Computer Applications Solved Question Paper.

Name the technique used:

  1. Bubble sort
  2. Linear Search
  3. Selection sort
  4. Binary Search

Java Arrays

2 Likes

Answer

Bubble sort

Reason — The array is arranged in ascending order by repeatedly comparing and swapping adjacent elements. First, 4 and 1 are swapped to get 1 4 3, and then 4 and 3 are swapped to get 1 3 4. This step-by-step swapping of adjacent elements is the characteristic feature of Bubble Sort.

Answered By

1 Like


Related Questions