Multiple Choice
Which of the following statements a) , b) or c) is false?
A) The linear search algorithm searches each element in an array sequentially.
B) If the search key does not match an element in the array, the algorithm informs the user that the search key is not present.
C) If the search key is in the array, the algorithm tests each element until it finds one that matches the search key and returns the index of that element.
D) All of the above statements are true.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Which of the following statements a), b)
Q2: What should the question mark (?) in
Q3: The following fibonacci function calculates the nth
Q5: Which of the following statements a), b)
Q6: Which of the following statements a), b)
Q7: An algorithm that tests whether the first
Q8: Which of the following statements about the
Q9: Which of the following statements about binary
Q10: Suppose an algorithm is designed to test
Q11: Suppose you have an algorithm that tests