B03A – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12A-2018-B03A #PYTHON#6126    siteicon   siteicon  

Problem Statement - B03A

Consider the following randomly ordered numbers stored in a list
786, 234, 526, 132, 345, 467,
Show the content of list after the First, Second and Third pass of the bubble sort method used for arranging in ascending order ?
Note: Show the status of all the elements after each pass very clearly underlining the changes.

Solution

TC++ #6126

I Pass 234, 526, 132, 345, 467, 786
II Pass 234, 132 , 345 , 467 , 526 , 786
III Pass 132 , 234 , 345 , 467, 526, 786


Share

CSKC| Created: 9-Jan-2019 | Updated: 9-Jan-2019|CBSE12A-2018









Back