资源描述:
《《斯坦福大学开放课程:编程方法》讲义#28》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、MehranSahamiCS106AHandout#28October24,2007PracticeMidtermExaminationMidtermTime:Tuesday,October30,7:00–8:30P.M.MidtermLocation:KresgeAuditoriumPortionsofthishandoutbyEricRobertsandPatrickYoungThishandoutisintendedtogiveyoupracticesolvingproblemsthatarecomparableinformatanddifficultytothose
2、whichwillappearonthemidtermexaminationnextTuesday.Examisopenbook,opennotes,closedcomputerTheexaminationisopen-book(specificallythecoursetextbookTheArtandScienceofJavaandtheKareltheRobotcoursereader)andyoumaymakeuseofanyhandouts,coursenotes/slides,printoutsofyourprogramsorothernotesyou'vetak
3、enintheclass.Youmaynot,however,useacomputerofanykind(i.e.,youcannotuselaptopsontheexam).CoverageThemidtermexamcoversthematerialpresentedinclassthroughtoday(October24th),whichmeansthatyouareresponsiblefortheKarelmaterialplusChapters1through9oftheclasstextbookTheArtandScienceofJava,plustheuse
4、ofmouselistenersfromChapter10(sections10.1-10.4).Datafiles(whichwillbecoveredinclassonFriday)arenotcoveredontheexam.GeneralinstructionsAnswereachofthequestionsincludedintheexam.Writeallofyouranswersdirectlyontheexaminationpaper,includinganyworkthatyouwishtobeconsideredforpartialcredit.Eachq
5、uestionismarkedwiththenumberofpointsassignedtothatproblem.Thetotalnumberofpointsis90.Weintendforthenumberofpointstoberoughlycomparabletothenumberofminutesyoushouldspendonthatproblem.Inallquestions,youmayincludemethodsordefinitionsthathavebeendevelopedinthecourse,eitherbywritingtheimportline
6、fortheappropriatepackageorbygivingthenameofthemethodandthehandoutorchapternumberinwhichthatdefinitionappears.Unlessotherwiseindicatedaspartoftheinstructionsforaspecificproblem,commentswillnotberequiredontheexam.Uncommentedcodethatgetsthejobdonewillbesufficientforfullcreditontheproblem.Onthe
7、otherhand,commentsmayhelpyoutogetpartialcreditiftheyhelpusdeterminewhatyouweretryingtodo.BlankpagesforsolutionsomittedinpracticeexamInanefforttosavetrees,theblankpagesthatwouldbeprovidedinaregularexamforwritingyoursolutionshavebeenomittedfromthispractice