
Bubble Sort, Insertion and Merge Sort Quiz
Authored by Terry Watts
Computers
12th Grade
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble Sort
After the first pass in a bubble sort algorithm, which of the following is true?
The smallest element is in its correct position.
The largest element is in its correct position.
All elements are sorted.
No elements are in their correct position.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble Sort
How many loops do we need for bubble sort algorithm?
1 while loop
1 for loop
1 while loop with a nested for loop
Any two separate loops
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble Sort
What operation is performed using for loop in bubble sort algorithm?
Elements are compared with its next element.
Checks swap flag
Elements are compared with its next element and swapped if necessary
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble Sort
In which of the following cases, are the numbers swapped in bubble sort?
The current element is greater than the next element
The current element is less than the next element
The current element is equal to the next element
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble Sort
Based on the list: 9, 5, 3, 6, 11
How many swapping is performed in the first loop?
2
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble Sort
Based on the list: 9, 5, 3, 6, 11
How many swapping is performed in the second loop?
1
2
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble Sort
Based on the list: 9, 5, 3, 6, 11
What is the total number of passes required?
1
2
3
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Berpikir Komputasional
Quiz
•
9th - 12th Grade
13 questions
Algorithms Quiz
Quiz
•
12th Grade
18 questions
Quiz Ôn tập
Quiz
•
7th Grade - University
20 questions
Week 6 - ECS
Quiz
•
12th Grade
18 questions
SAINS KOMPUTER F5 BAB 3
Quiz
•
10th - 12th Grade
20 questions
Tes Formatif 1 Informatika
Quiz
•
12th Grade
19 questions
2.2.2. Computational Methods
Quiz
•
12th Grade
17 questions
Big O Notation
Quiz
•
12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade