Question
Option 1 : 34, 25, 12, 22, 11, 64, 90
Detailed Solution
सही उत्तर 34, 25, 12, 22, 11, 64, 90 है।
Question:
What is the state of the array [64, 34, 25, 12, 22, 11, 90] after the first pass of bubble sort in ascending order? / आरोही क्रम में बबल सॉर्ट के पहले पास के बाद ऐरे [64, 34, 25, 12, 22, 11, 90] की स्थिति क्या होगी?
Correct Answer: 34, 25, 12, 22, 11, 64, 90
One bubble-sort pass swaps each adjacent out-of-order pair, pushing the largest element 90 to the end: [34, 25, 12, 22, 11, 64, 90]. The smallest element reaches the front only in selection sort, not bubble sort. / बबल सॉर्ट का एक पास प्रत्येक क्रम-विरुद्ध आसन्न युग्म को अदल-बदल करता है, जिससे सबसे बड़ा एलिमेंट 90 अंत में पहुँचता है: [34, 25, 12, 22, 11, 64, 90]। सबसे छोटा एलिमेंट सिलेक्शन सॉर्ट में सामने आता है, बबल सॉर्ट में नहीं।