What is the time complexity of linear search in the worst case?

Unit V DSA Quiz

Quiz
•
Computers
•
University
•
Hard
Placement Stjosephs
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O(1)
O(log n)
O(n)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which search algorithm works efficiently on sorted arrays?
Linear search
Binary search
Hashing
Jump search
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of binary search in the worst case?
O(n)
O(log n)
O(n log n)
O(1)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a necessary condition for binary search to work?
Unsorted list
Sorted list
Circular array
Linked list
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In linear search, the average number of comparisons is:
n
n/2
log n
1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a comparison-based sorting algorithm?
Radix sort
Counting sort
Bubble sort
Bucket sort
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble sort repeatedly compares:
Current element with the first
Adjacent elements
All elements with the last
Even indexed elements
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Hash

Quiz
•
University
20 questions
SMARTICUS

Quiz
•
University
25 questions
QUIZ

Quiz
•
University
30 questions
BUG-OFF

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

Quiz
•
University
20 questions
Data Structures Quiz

Quiz
•
University
20 questions
Data Structures and Algorithm

Quiz
•
University
20 questions
Quantitative Aptitude Series

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