Bubble Sort, Insertion and Merge Sort Quiz

Bubble Sort, Insertion and Merge Sort Quiz

12th Grade

18 Qs

quiz-placeholder

Similar activities

2.1.3 Algorithms (Sorting)

2.1.3 Algorithms (Sorting)

12th Grade

13 Qs

AP Sort and Search

AP Sort and Search

9th - 12th Grade

21 Qs

Quiz on Standard Algorithms

Quiz on Standard Algorithms

10th Grade - University

20 Qs

Sorting Algorithms

Sorting Algorithms

12th Grade

20 Qs

Searching & Sorting Algorithms

Searching & Sorting Algorithms

10th Grade - University

16 Qs

Practice for AP Java Quiz #13 Sorting

Practice for AP Java Quiz #13 Sorting

9th - 12th Grade

20 Qs

Searching & sorting algorithms

Searching & sorting algorithms

10th - 12th Grade

21 Qs

2.1 Algorithms

2.1 Algorithms

10th - 12th Grade

20 Qs

Bubble Sort, Insertion and Merge Sort Quiz

Bubble Sort, Insertion and Merge Sort Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Terry Watts

Used 5+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?