智思教育

2012年AP计算机科学A简答题真题+答案+PDF下载

来源:原创作品 | 2019-12-13260

2012年AP计算机科学A简答题真题+答案+PDF下载COMPUTERSCIENCEASECTIONIITime—1hourand45minutesNumberofquestions—4Percentoftotalscore—50Directions:SHOWALLYOURWORK.REMEMBERTHATPROGRAMS...

2012年AP计算机科学A简答题真题+答案+PDF下载

COMPUTER SCIENCE A

SECTION II

Time—1 hour and 45 minutes

Number of questions—4

Percent of total score—50

Directions: SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE

WRITTEN IN JAVA.

Notes:

  •  Assume that the classes listed in the appendices have been imported where appropriate.
  • Unless otherwise noted in the question, assume that parameters in method calls are not null and that methods are called only when their preconditions are satisfied.
  • In writing solutions for each question, you may use any of the accessible methods that are listed in classes defined in that question. Writing significant amounts of code that can be replaced by a call to one of these methods may not receive full credit.

1. A mountain climbing club maintains a record of the climbs that its members have made. Information about a climb includes the name of the mountain peak and the amount of time it took to reach the top. The information is contained in the ClimbInfo class as declared below.

The ClimbingClub class maintains a list of the climbs made by members of the club. The declaration of the ClimbingClub class is shown below. You will write two different implementations of the addClimb method. You will also answer two questions about an implementation of the distinctPeakNames method.

以上为2012年AP计算机科学A真题部分,想要领取PDF版真题,及答案,请扫码领取!

天道智思提供AP计算机科学辅导,小班教学,线上线下均可授课!


版权及免责声明
1、如转载本网原创文章,请表明出处;
2、本网转载媒体稿件旨在传播更多有益信息,并不代表同意该观点,本网不承担稿件侵权行为的连带责任;
3、如本网转载稿涉及版权等问题,请作者见稿后在两周内速来电与智思教育联系,电话:021-64325600。

内容推荐

学员成绩提升率100%,满意度99%
联系我们
课程咨询
智思教育
咨询热线:021-64325600