题目
题目

IS 4485-001 Fall 2025 Final Exam

单项选择题

What will binary search return if the target is not found in the list?

选项
A.The first element
B.The smallest element
C.-1 or some indication of failure
D.The largest element
E.The closest element
F.Zero
查看解析

查看解析

标准答案
Please login to view
思路分析
Question reminder: What will binary search return if the target is not found in the list? Option 1: The first element. Explanation: Returning the first element would be incorrect because binary search only returns an index or value when it matches the target; locating the first element implies a successful find, not a failure to locate. Option 2: The smallest element. Explanatio......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!