Searching Algorithms
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Yomna Elkholy
Used 5+ times
FREE Resource
Enhance your content in a minute
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Where is linear searching used?
When the list has only a few elements
When performing a single search in an unordered list
Used all the time
When the list has only a few elements and when performing a single search in an unordered list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best case complexity for linear search?
O(nlogn)
O(logn)
O(n)
O(1)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case complexity for linear search?
O(nlogn)
O(logn)
O(n)
O(1)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a disadvantage of linear search?
Requires more space
Greater time complexities compared to other searching algorithms
Not easy to understand
Not easy to implement
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an application of binary search?
To find the lower/upper bound in an ordered sequence
Searching for a word in a dictionary
Debugging
To search in unordered list
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given an array arr = {5,6,77,88,99} and key = 88; How many iterations are doneuntil the element is found using binary search?
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given an array arr = {45,77,89,90,94,99,100} and key = 100; What are the mid values(corresponding array elements) generated in the first and second iterations using binary search?
90 and 99
90 and 100
89 and 94
94 and 99
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
25 questions
MATLAB Exam prep
Quiz
•
University
21 questions
3°D_SAV2_R2 3TECBE_ Algoritmos Estruturas Dados_17_36 QUIZIZZ
Quiz
•
11th Grade - University
21 questions
HTTP and the Web
Quiz
•
University
21 questions
Minitest Javascript
Quiz
•
University
23 questions
SQL
Quiz
•
12th Grade - Professi...
21 questions
Low Level Language_High Level language
Quiz
•
University
23 questions
Java Array
Quiz
•
University
22 questions
AIS160 Computing Components
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th 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
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
