
searching quiz
Authored by Asyraf Zulkifli
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 3 pts
Which of the following is a search algorithm?
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
POP QUIZ 4 (DFC40243)
Quiz
•
University
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
12 questions
ASK Tingkatan 1: 2.2.2 Format Imej pada Fail yang Sama
Quiz
•
12th Grade - University
10 questions
Listen in Python
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
10 questions
Perkakasan Multimedia
Quiz
•
University
10 questions
Komdat Chap 2
Quiz
•
University
15 questions
Komponen Jaringan & Pengkabelan
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade