Q. To design a general-purpose search method, searchList, to search a list, which of the following 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.

  • (A) (i) and (ii)
  • (B) (i), (ii), and (iii)
  • (C) (ii), (iii), and (iv)
  • (D) (i), (ii), (iii), and (iv)
πŸ’¬ Discuss
βœ… Correct Answer: (B) (i), (ii), and (iii)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
186
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate