Search Header Logo

Bubble Sort, Insertion and Merge Sort Quiz

Authored by Terry Watts

Computers

12th Grade

Used 11+ times

Bubble Sort, Insertion and Merge Sort Quiz
AI

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers