Which of the following is a search algorithm?
searching quiz

Quiz
•
Computers
•
University
•
Hard
Asyraf Zulkifli
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 3 pts
Sorting
Merging
Binary search
Hashing
2.
MULTIPLE CHOICE QUESTION
10 sec • 3 pts
Which of the following is a disadvantage of sequential search?
It is faster than binary search
It requires the data to be sorted
It is not suitable for large datasets
It always finds the target element
3.
MULTIPLE CHOICE QUESTION
10 sec • 3 pts
Which of the following is a requirement for binary search?
The data must be sorted
The data must be unsorted
The data must be in a linked list
The data must be in a hash table
4.
MULTIPLE CHOICE QUESTION
10 sec • 3 pts
What is the time complexity of binary search?
O(n)
O(log n)
O(n^2)
O(1)
5.
MULTIPLE CHOICE QUESTION
10 sec • 3 pts
Which of the following is a disadvantage of interpolation search?
It requires the data to be sorted
It is not suitable for large datasets
It always finds the target element
It is slower than binary search
6.
MULTIPLE CHOICE QUESTION
10 sec • 3 pts
When should you use a binary search?
When the data is sorted and in an array
When the data is unsorted and in an array
When the data is sorted and in a linked chain
When the data is unsorted and in a linked chain
7.
MULTIPLE CHOICE QUESTION
10 sec • 3 pts
What method must objects have to be used in a binary search?
equals
compareTo
contains
sort
Create a free account and access millions of resources
Similar Resources on Quizizz
9 questions
Merge sort | Starter Quiz | Oak National Academy

Quiz
•
9th Grade - University
10 questions
7.5 Standard Methods of Solution Cambridge IGCSE 0478

Quiz
•
10th Grade - University
15 questions
AS Computing: Data Structures

Quiz
•
10th Grade - University
15 questions
NSCC-CODE TO COIN

Quiz
•
University
10 questions
Quiz - CSE

Quiz
•
University
10 questions
Quiz-AIML

Quiz
•
University
14 questions
GCSE Computer Science Revison Quiz Lesson 9

Quiz
•
10th Grade - University
10 questions
GCSE Computer Science 9-1: Sorting Algorithms

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade