Where is linear searching used?
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
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 Quizizz
25 questions
Neo Coding Round 1 Set 2

Quiz
•
University
27 questions
Comp 210 MT2 Review

Quiz
•
University
25 questions
Algoritma 2

Quiz
•
University
25 questions
C - Data Structures (Unit 1 - QUIZ)

Quiz
•
University
31 questions
Chapt 14

Quiz
•
University
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
24 questions
PRA UAS STRUKTUR DATA

Quiz
•
University
25 questions
Technical quiz(Medium-Level)

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade