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

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

真题与答案下载

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

翰林国际教育全网首发

力争超快速发布最全资料

助你在升学路上一帆风顺

为你的未来保驾护航

2008 AP Computer Science A Free-Response Questions Free Download

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

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

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

占总分50%

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

完整版下载链接见文末

部分真题预览:

1)A travel agency maintains a list of information about airline flights. Flight information includes a departure time and an arrival time. You may assume that the two times occur on the same day. These times are represented by objects of the Time class.2008国际课程AP Computer Science A计算机科学A真题与答案下载
The declaration for the Time class is shown below. It includes a method minutesUntil that returns the difference (in minutes) between the current Time object and another Time object.
For example, assume that t1 and t2 are Time objects where t1 represents 1:00 P.M. and t2 represents 2:15 P.M. The call t1.minutesUntil(t2) will return 75 and the call t2.minutesUntil(t1) will return -75.
The declaration for the Flight class is shown below. It has methods to access the departure time and the arrival time of a flight. You may assume that the departure time of a flight is earlier than its arrival time.
A trip consists of a sequence of flights and is represented by the Trip class. The Trip class contains an ArrayList of Flight objects that are stored in chronological order. You may assume that for each flight after the first flight in the list, the departure time of the flight is later than the arrival time of the preceding flight in the list. A partial declaration of the Trip class is shown below. You will write two methods for the Trip class.2008国际课程AP Computer Science A计算机科学A真题与答案下载

  1. Complete method getDuration below.2008国际课程AP Computer Science A计算机科学A真题与答案下载
  2. Write the Trip method getShortestLayover. A layover is the number of minutes from the arrival of one flight in a trip to the departure of the flight immediately after it. If there are two or more flights in the trip, the method should return the shortest layover of the trip; otherwise, it should return -1. For example, assume that the instance variable flights of a Trip object vacation contains the following flight information.2008国际课程AP Computer Science A计算机科学A真题与答案下载

 

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

文件为PDF格式

推荐使用电脑下载

 

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

请持续关注,稍后更新

 

 

 

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

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

更多AP课程