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
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
PENILAIAN HARIAN 2

Quiz
•
11th Grade - University
10 questions
Lists in python

Quiz
•
University
15 questions
UNIT-IV 2

Quiz
•
University
7 questions
Final Practice

Quiz
•
University
15 questions
CPIT 201 Algorithms

Quiz
•
12th Grade - University
10 questions
informatika

Quiz
•
7th Grade - University
15 questions
Logika dan Algoritma P12

Quiz
•
University
12 questions
Enumeration and Recursion

Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University