Linear search checks elements:
-
A
One by one
Correct answer
-
B
By dividing in half
-
C
Randomly
-
D
From the middle
Correct answer
A. One by one
9 views
Explanation
Linear search goes through the list one by one until it finds the target. It works on unsorted data but is slower than binary search on large lists.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ