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
7 questions
Final Practice

Quiz
•
University
15 questions
special exam in BINARY TREE

Quiz
•
University
10 questions
Quiz-AIML

Quiz
•
University
8 questions
Trees & Binary Tree

Quiz
•
University
10 questions
informatika

Quiz
•
7th Grade - University
15 questions
CPIT 201 Algorithms

Quiz
•
12th Grade - University
10 questions
AdvancedProgramming_intro

Quiz
•
University
8 questions
Search Algorithms in Python (A)

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade