Q. To design a general-purpose search method, searchList, to search a list, which of thefollowing must be parameters of the method searchList? (i) The array containing the list. (ii) The length of the list. (iii) The search item. (iv) A boolean variable indicating whether the search is successful. (Solved)
1. (i) and (ii)
2. (i), (ii), and (iii)
3. (ii), (iii), and (iv)
4. (i), (ii), (iii), and (iv)
- b. (i), (ii), and (iii)