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
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
30 questions
C-Programming
Quiz
•
University
22 questions
ABC's of Programming A
Quiz
•
University
22 questions
التهيئة للتطبيق الشامل- أول اعدادي
Quiz
•
1st Grade - University
23 questions
DAILY EXAM COMPUTER SCIENCE P5 FE 1
Quiz
•
5th Grade - University
23 questions
IAW_2AS3_PHP_1
Quiz
•
1st Grade - University
23 questions
Database and JDBC
Quiz
•
University
23 questions
12) 210.3 LDAP client usage
Quiz
•
University
21 questions
Internet (Part II)
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
