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
10 questions
Quiz-AIML

Quiz
•
University
15 questions
Data Structures Activity - 1

Quiz
•
University
8 questions
Trees & Binary Tree

Quiz
•
University
15 questions
AlgoMania Quiz

Quiz
•
University
10 questions
Quiz Metode Pencarian Sequential

Quiz
•
University
14 questions
A-Level Computer Science Data Structures Quiz

Quiz
•
12th Grade - University
10 questions
CSS TECH TRIVIA - MEDIUM LEVEL

Quiz
•
University
12 questions
Quiz-1(Div-C)

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade