翰林国际教育全网首发
力争超快速发布最全资料
助你在升学路上一帆风顺
为你的未来保驾护航
此套题仅 Section I含有选择题,
共计时1小时15分钟,共40题
占总分50%
仅可以使用铅笔答题
8)A car dealership needs a program to store information about the cars for sale.
For each car, they want to keep track of the following information: number of doors (2 or 4), whether the car has air conditioning, and its average number of miles per gallon. Which of the following is the best design?
Questions 11-12 refer to the following information.
Consider the following instance variable and method findLongest with line numbers added for reference. Method findLongest is intended to find the longest consecutive block of the value target occurring in the array nums; however, findLongest does not work as intended.
For example, if the array nums contains the values [7, 10, 10, 15, 15, 15, 15, 10, 10, 10, 15, 10, 10], the call findLongest(10) should return 3, the length of the longest consecutive block of 10’s.

11) The method findLongest does not work as intended.
Which of the following best describes the value returned by a call to findLongest ?
12)Which of the following changes should be made so that method findLongest will work as intended?
以上就是关于【2008 AP Computer Science A 计算机科学A真题系列之选择题免费下载】的解答,如需了解学校/赛事/课程动态,可至翰林教育官网获取更多信息。
往期文章阅读推荐:
2026 AP大考热点复盘!延期+反作弊+独立出卷,理/化/微积分/北美FRQ…真题免费领!
突发!AP澳新考场全面取消,贝赛思学生遭开除!国际教育的底线不容试探

© 2026. All Rights Reserved. 沪ICP备2023009024号-1