题目
题目

IS 4485-001 Fall 2025 Final Exam Practice 1

单项选择题

Which of the following is a potential issue when computing mid = (low + high) // 2 for very large lists?

选项
A.Syntax error
B.Floating point error
C.No issues with this approach
D.Logic error
E.Division by zero
F.Integer overflow
查看解析

查看解析

标准答案
Please login to view
思路分析
To address this question, we first consider what the expression mid = (low + high) // 2 attempts to do: it finds the midpoint between low and high using integer division. Option 1: Floating point error. Since the calculation uses integers (low and high) and the division is integer division (//), there is no floating point arithmetic involved, so floating point errors are not a conce......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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