Searching Algorithms

Quiz
•
Computers
•
University
•
Hard
Yomna Elkholy
Used 5+ times
FREE Resource
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
Similar Resources on Wayground
30 questions
Latihan Algotima

Quiz
•
University
30 questions
Quiz Informatika 7

Quiz
•
7th Grade - University
27 questions
Data Structures Midterm Exam WRI

Quiz
•
University
25 questions
Code Sprint

Quiz
•
University
24 questions
Python Lists Quiz 8

Quiz
•
University
25 questions
AI Quiz

Quiz
•
University
27 questions
Quiz: Module 10: Coding Quiz

Quiz
•
9th Grade - University
25 questions
Data Structures 1

Quiz
•
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