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

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

真题与答案下载

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

翰林国际教育全网首发

力争超快速发布最全资料

助你在升学路上一帆风顺

为你的未来保驾护航

2014 AP Computer Science A Free-Response Questions Free Download

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

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

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

占总分50%

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

完整版下载链接见文末

部分真题预览:

1)This question involves reasoning about strings made up of uppercase letters. You will implement two related methods that appear in the same class (not shown). The first method takes a single string parameter and returns a scrambled version of that string. The second method takes a list of strings and modifies the list by scrambling each entry in the list. Any entry that cannot be scrambled is removed from the list.

  1. Write the method scrambleWord which takes a given word and returns a string that contains a scrambled version of the word according to the following rules.
    The scrambling process begins at the first letter of the word and continues from left to right.
    If two consecutive letters consist of an "A" followed by a letter that is not an "A", then the two letters are swapped in the resulting string.
    Once the letters in two adjacent positions have been swapped, neither of those two positions can be involved in a future swap.
    The following table shows several examples of words and their scrambled versions.2014国际课程AP Computer Science A计算机科学A真题与答案下载
    Complete method scrambleWord below.2014国际课程AP Computer Science A计算机科学A真题与答案下载
  2. Write the method scrambleOrRemove, which replaces each word in the parameter wordList, with its scrambled version and removes any words that are unchanged after scrambling. The relative ordering of the entries in wordList, remains the same as before the call to scrambleOrRemove.
    The following example shows how the contents of wordList would be modified as a result of calling scrambleOrRemove.
    Before the call to scrambleOrRemove:2014国际课程AP Computer Science A计算机科学A真题与答案下载
    After the call to scrambleOrRemove:2014国际课程AP Computer Science A计算机科学A真题与答案下载
    Assume that scrambleWord is in the same class as scrambleOrRemove and works as specified, regardless of what you wrote in part (a).
    Complete method scrambleOrRemove below.2014国际课程AP Computer Science A计算机科学A真题与答案下载

 

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

文件为PDF格式

推荐使用电脑下载

 

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

请持续关注,稍后更新

 

 

 

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

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

更多AP课程