Quiz on Linear Search Algorithm



1. What is the primary purpose of the linear search algorithm?
2. What is the time complexity of the linear search algorithm in the worst case?
3. Which of the following data structures is best suited for linear search?
4. What is one disadvantage of using linear search?
5. In what scenario is linear search particularly useful?

Advertisements