Searching and Sorting Algorithms Quiz

Quiz
•
Other
•
11th Grade
•
Medium

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
Similar Resources on Wayground
12 questions
O Januszu

Quiz
•
1st - 12th Grade
10 questions
Outlook Lesson 8.3 Managing Messages

Quiz
•
11th Grade
10 questions
Quiz Analisis Data

Quiz
•
10th Grade - University
13 questions
Aplikasi Perkantoran

Quiz
•
9th - 12th Grade
14 questions
antyk

Quiz
•
KG - University
15 questions
Islam: The Hajj

Quiz
•
11th - 12th Grade
12 questions
Quiz 1. Data Structures (OSTIM 2022)

Quiz
•
1st - 12th Grade
15 questions
Muscular System

Quiz
•
11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Other
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade