
Linked and Binary Search
Authored by Ravibalan undefined
Computers
University
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What is the worst-case time complexity of a linear search?
O(log n)
O(n)
O(1)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the following cases does linear search perform the best?
When the element is at the middle
When the array is sorted
When the element is not present
When the element is at the first position
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a characteristic of linear search?
It can be applied on unsorted data
It performs better on large datasets than binary search
It is simple and easy to implement
It checks elements sequentially
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many comparisons are made in the worst-case linear search in an array of size n?
1
log n
n
n/2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of data is most suitable for linear search?
Sorted arrays only
Only strings
Linked lists or small unsorted datasets
Binary trees
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary condition for applying binary search?
Array must contain integers only
Array must be unsorted
Array must be sorted
Array must contain non-repeating elements
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the average case time complexity of binary search?
O(n)
O(n log n)
O(1)
O(log n)
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
20 questions
แบบทดสอบการค้นหาข้อมูลขั้นสูง
Quiz
•
6th Grade - University
20 questions
Endterm Exercise #5
Quiz
•
University
20 questions
8-期中总结
Quiz
•
University
20 questions
basisdata1
Quiz
•
University
20 questions
Algorithm questions
Quiz
•
12th Grade - University
20 questions
Digital introductions
Quiz
•
University
20 questions
PARC Linux Basic Part 2
Quiz
•
University
20 questions
9b eSafety
Quiz
•
6th Grade - 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