历年AP Computer Science计算机科学系列
真题与答案下载
翰林国际教育全网首发
力争超快速发布最全资料
助你在升学路上一帆风顺
为你的未来保驾护航
2015 AP Computer Science A Released Exam Multiple Choices Free Download
2015 AP 计算机科学A公开卷选择题部分免费下载
此套题仅 Section I含有选择题,
共计时1小时15分钟,共40题
占总分50%
仅可以使用铅笔答题
完整版下载链接见文末
部分真题预览:
1)Consider the following incomplete method, which is intended to return the number of integers that evenly divide the integer inputVal. Assume that inputVal is greater than 0.
Which of the following can be used to replace / * condition * / so that numDivisors will work as intended?
- inputVal % k == 0
- k % inputVal == 0
- inputVal % k != 0
- inputVal / k == 0
- k / inputVal > 0
4)Consider the following instance variable and method.
Method findMax is intended to return the largest value in the array arr. Which of the following best describes the conditions under which the method findMax will not work as intended?
- The largest value in arr occurs only once and is in arr[0] .
- The largest value in arr occurs only once and is in arr[arr.length - 1].
- The largest value in arr is negative.
- The largest value in arr is zero.
The largest value in arr occurs more than once.
14)Consider the following method, biggest, which is intended to return the greatest of three integers. It does not always work as intended.
Which of the following best describes the error in the method?
- biggest always returns the value of a.
- biggest may not work correctly when c has the greatest value.
- biggest may not work correctly when a and b have equal values.
- biggest may not work correctly when a and c have equal values.
- biggest may not work correctly when b and c have equal values.
完整版真题资料可以底部二维码免费领取↓↓↓