Searching and Sorting Algorithms Quiz

Searching and Sorting Algorithms Quiz

11th Grade

10 Qs

quiz-placeholder

Similar activities

Địa lý

Địa lý

4th - 12th Grade

10 Qs

BTS

BTS

KG - Professional Development

8 Qs

Verbos presentes

Verbos presentes

9th - 11th Grade

11 Qs

Teste 2ª série - 08042025

Teste 2ª série - 08042025

7th Grade - University

15 Qs

NỤ CƯỜI MÀU NẮNG_THỜI SINH VIÊN RỰC RỠ NHƯ ÁNH MẶT TRỜI

NỤ CƯỜI MÀU NẮNG_THỜI SINH VIÊN RỰC RỠ NHƯ ÁNH MẶT TRỜI

KG - Professional Development

15 Qs

Cognition Lesson 2 Vocab Review

Cognition Lesson 2 Vocab Review

9th - 12th Grade

13 Qs

The Super Mario Quiz

The Super Mario Quiz

KG - Professional Development

10 Qs

One piece :)

One piece :)

KG - Professional Development

15 Qs

Searching and Sorting Algorithms Quiz

Searching and Sorting Algorithms Quiz

Assessment

Quiz

Other

11th Grade

Medium

Created by

Darragh OConnor

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of a linear search algorithm?

O(n)

O(n^2)

O(log n)

O(1)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which search algorithm requires the array to be sorted before performing the search?

Breadth First Search

Depth First Search

Binary Search

Linear Search

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

O(log n)

O(1)

O(n^2)

O(n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm repeatedly swaps adjacent elements if they are in the wrong order?

Selection Sort

Bubble Sort

Insertion Sort

Merge Sort

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of a bubble sort algorithm in the worst case?

O(1)

O(log n)

O(n)

O(n^2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm repeatedly selects the minimum element from the unsorted part of the array and places it at the beginning?

Selection Sort

Merge Sort

Insertion Sort

Bubble Sort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of a selection sort algorithm in the worst case?

O(n^2)

O(n log n)

O(log n)

O(n)

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?