Sorting & Searching Algorithms

Sorting & Searching Algorithms

12th Grade

16 Qs

quiz-placeholder

Similar activities

laila comel tummy busuk

laila comel tummy busuk

9th - 12th Grade

20 Qs

Searching & sorting algorithms

Searching & sorting algorithms

10th - 12th Grade

21 Qs

Sorting Algorithms

Sorting Algorithms

12th Grade

20 Qs

Searching and sorting algorithm quiz

Searching and sorting algorithm quiz

12th Grade

19 Qs

Bubble Sort

Bubble Sort

1st Grade - Professional Development

13 Qs

Software Design and Development: Algorithm Quiz

Software Design and Development: Algorithm Quiz

11th - 12th Grade

15 Qs

Big O Notation Quiz

Big O Notation Quiz

11th - 12th Grade

21 Qs

AP Sort and Search

AP Sort and Search

9th - 12th Grade

21 Qs

Sorting & Searching Algorithms

Sorting & Searching Algorithms

Assessment

Quiz

Computers

12th Grade

Medium

Created by

B McCue

Used 5+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a searching algorithm?

To write a novel

To play music

To cook a meal

To locate a specific item or value within a collection of data.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which searching algorithm has a time complexity of O(log n)?

Binary search

Linear search

Depth-first search

Breadth-first search

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank: Linear search has a time complexity of ________.

O(n)

O(log n)

O(1)

O(n^2)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case time complexity of binary search?

O(n^2)

O(n)

O(1)

O(log n)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm works by repeatedly swapping adjacent elements if they are in the wrong order?

Bubble Sort

Insertion Sort

Quick Sort

Merge Sort

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank: Bubble sort has a time complexity of ________.

O(nlogn)

O(n)

O(n^2)

O(1)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of merge sort over bubble sort?

Merge sort is less stable than bubble sort

Efficiency in terms of time complexity

Merge sort has a higher space complexity

Merge sort is easier to implement

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?