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

ICSE Class 10 Computer Applications PYQ · 2026 Paper · Section A

1(xvii)1 Mark · 2026 · Section A · 2026 Paper

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:

Show SolutionHide Solution↓

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.

← Previous questionNext question →

Browse the free Computer Applications sample bank