Bubble Sort Quiz
Assessment
•
Deleted User
•
Computers
•
10th - 12th Grade
•
13 plays
•
Medium
Student preview
5 questions
Show answers
1.
Multiple Choice
What is bubble sort?
Bubble Sort is a divide and conquer algorithm based on the idea of breaking down a list into several sub-lists until each sub list consists of a single element and merging those sub lists in a manner that results into a sorted list.
Bubble Sort is a simple sorting algorithm that builds the final sorted array one item at a time.
Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.
Bubble Sort is a divide and conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot.
2.
Multiple Choice
What is the advantage of bubble sort over other sorting techniques?
It is faster
Consumes less memory
Detects whether the input is already sorted
All of the mentioned
3.
Multiple Choice
The given array is arr = {1,2,4,3}. Bubble sort is used to sort the array elements. How many iterations will be done to sort the array?
4
2
1
0
4.
Multiple Choice
In a bubble sort structure, there is/are?
A single for loop
Three for loops, all separate
A while loop
Two for loops, one nested in the other
5.
Multiple Choice
What is the temporary variable called?
Substitution
Temp
Replacement
Fill in
Explore this activity with a free account
Find a similar activity
Create activity tailored to your needs using
Sorting Algorithms Quiz No 2
•
Bubble/Selection sort quiz
•
SEARCH-SORT
•
Bubble Sort Algorithm Quiz
•
Quick Sort Quiz
•
Merge Sort Quiz
•
Bubble Sort Quiz
•
2.3.1(f) Big O Do Now
•