2015 AP Computer Science A 计算机科学A真题系列之Released Exam选择题免费下载

历年AP Computer Science计算机科学系列

真题与答案下载

历年AP国际课程真题与答案下载

翰林国际教育全网首发

力争超快速发布最全资料

助你在升学路上一帆风顺

为你的未来保驾护航

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.2015国际课程AP Computer Science A计算机科学A真题与答案下载

Which of the following can be used to replace / * condition * / so that numDivisors will work as intended?

  1. inputVal % k == 0
  2. k % inputVal == 0
  3. inputVal % k != 0
  4. inputVal / k == 0
  5. k / inputVal > 0

4)Consider the following instance variable and method.2015国际课程AP Computer Science A计算机科学A真题与答案下载

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?

  1. The largest value in arr occurs only once and is in arr[0] .
  2. The largest value in arr occurs only once and is in arr[arr.length - 1].
  3. The largest value in arr is negative.
  4. 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?

  1. biggest always returns the value of a.
  2. biggest may not work correctly when c has the greatest value.
  3. biggest may not work correctly when a and b have equal values.
  4. biggest may not work correctly when a and c have equal values.
  5. biggest may not work correctly when b and c have equal values.

完整版真题资料可以底部二维码免费领取↓↓↓

更多AP课程
翰林国际教育资讯二维码