2011 AP Computer Science A 计算机科学A真题系列之简答题免费下载

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

真题与答案下载

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

翰林国际教育全网首发

力争超快速发布最全资料

助你在升学路上一帆风顺

为你的未来保驾护航

2011 AP Computer Science A Free-Response Questions Free Download

2011 AP 计算机科学A简答题部分免费下载

此套题仅 Section II含有简答题,

共计时1小时45分钟,共4题

占总分50%

每道大题可能含有不同数量的小题

完整版下载链接见文末

部分真题预览:

1)Digital sounds can be represented as an array of integer values. For this question, you will write two unrelated methods of the Sound class.
A partial declaration of the Sound class is shown below.2011国际课程AP Computer Science A计算机科学A真题与答案下载

  1. The volume of a sound depends on the amplitude of each value in the sound. The amplitude of a value is its absolute value. For example, the amplitude of -2300 is 2300 and the amplitude of 4000 is 4000.
    Write the method limitAmplitude that will change any value that has an amplitude greater than the given limit. Values that are greater than limit are replaced with limit, and values that are less than -limit are replaced with –limit. The method returns the total number of values that were changed in the array. For example, assume that the array samples has been initialized with the following values.2011国际课程AP Computer Science A计算机科学A真题与答案下载
    When the statement2011国际课程AP Computer Science A计算机科学A真题与答案下载
    is executed, the value of numChanges will be 5, and the array samples will contain the following values.2011国际课程AP Computer Science A计算机科学A真题与答案下载
  2. Recorded sound often begins with silence. Silence in a sound is represented by a value of 0.
    Write the method trimSilenceFromBeginning that removes the silence from the beginning of a sound. To remove starting silence, a new array of values is created that contains the same values as the original samples array in the same order but without the leading zeros. The instance variable samples is updated to refer to the new array. For example, suppose the instance variable samples refers to the following array.2011国际课程AP Computer Science A计算机科学A真题与答案下载
    After trimSilenceFromBeginning has been called, the instance variable samples will refer to the following array.2011国际课程AP Computer Science A计算机科学A真题与答案下载

 

完整版真题下载链接注册登录后查看

文件为PDF格式

推荐使用电脑下载

 

2011 AP Computer Science A 计算机科学FRQ简答题完整版答案免费下载

请持续关注,稍后更新

 

 

 

如需打包下载,请联系小助手了解更多

翰林学员全站资料免费打包下载,专享高速下载通道。

更多AP课程