McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2026
→
Computer Science Engineering (CSE)
→
Data Structure and Algorithms (DSA)
→
_____passes are required to sort n data ...
Q.
_____passes are required to sort n data using bubble sort.
A.
n
B.
n-1
C.
n+2
D.
n-2
Answer» B. n-1
978
0
Do you find this helpful?
3
View all MCQs in
Data Structure and Algorithms (DSA)
Discussion
No comments yet
Login to comment
Related MCQs
The number of comparisons required to sort 5 numbers in ascending order using bubble sort are
The number of interchanges required to sort 5, 1, 6, 2 4 in ascending order using Bubble Sort is
Give timing complexities of three sorting algorithms bubble sort,selection sort,insertion sort respectively.
The number of swappings needed to sort the numbers 8, 22, 7, 9, 31, 19, 5, 13 in ascending order, using bubble sort is
What is the number of swaps required to sort n elements using selection sort, in the worst case?
The complexity of Bubble sort algorithm is
Consider that n elements are to be sorted.The worst case complexity of bubble sort is____
In bubble sort,for a file of size n,after p iterations number of records in proper position is____
In bubble sort,for a file of size n,during each pth pass the number of last records left out are____
Given a file size n the number of times a given file is passed through in bubble sort is____