Search Header Logo

1.2.6 Algorithms Quiz

Authored by Stephen Ling-Winston

Computers

9th Grade

1.2.6 Algorithms Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes the Bubble Sort algorithm?

It repeatedly merges subarrays until the whole array is sorted.

It sorts the array by repeatedly swapping adjacent elements if they are in the wrong order.

It sorts the array by dividing it into smaller parts and sorting each part recursively.

It searches for an element by repeatedly dividing the sorted array in half.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the Bubble Sort algorithm in the worst case?

O(n)

O(log n)

O(n log n)

O(n²)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following algorithms is a divide-and-conquer algorithm?

Bubble Sort

Merge Sort

Linear Search

Binary Search

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Merge Sort algorithm, what is the primary operation that occurs after the array is divided into smaller subarrays?

Swapping adjacent elements

Merging the subarrays back together in sorted order

Finding the middle element

Comparing each element with the pivot

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the Merge Sort algorithm in the worst case?

O(n)

O(log n)

O(n log n)

O(n²)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which search algorithm requires the data to be sorted before it can be applied?

Linear Search

Binary Search

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the Binary Search algorithm find an element in a sorted array?

By scanning each element from the start to the end of the array

By repeatedly dividing the array in half and searching the relevant subarray

By swapping elements until the array is sorted

By merging two sorted halves

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?