2012-2013(一)ssd3考试试卷A.docx
《2012-2013(一)ssd3考试试卷A.docx》由会员分享,可在线阅读,更多相关《2012-2013(一)ssd3考试试卷A.docx(10页珍藏版)》请在优知文库上搜索。
1、总分四五东北大学考试试卷(A卷)20122013学年第一学期课程名称:面向对象程序设计II!.SingleChoice(20POilItS2pointseach)1Fromwithinachildclass,itsparentclassisreferredtoviathekeyword?(C)(八)(his(B)Base(C)Super(D)parent2ClassesfromwhichofthefollowingpackagesareimplicitlyimportedintoeveryJavaprogram?(A)(八)java.Iang(B)java.util(C)java.awt(D)
2、java.io3InJava,thedefaultlayout布局managerforaJPaneIcomponentis(D)(八)BorderLayout(B)GridLayout(C)GridBagLayout(D)FIowLayout4TheStrategy策略designpattern模式islikelytobeusefulwhenimplementingwhichofthefollowing?(B)1Anapplicationthatoffersseveralalternate交替sorting排J至algorithms算法IlAsimpleclasstostoretheaddre
3、ssofanorganizationofwhichonlyoneinstancecanbeinstantiated(八)None(B)1only(C)IIonly(D)1andIl5IfthelengthofaparticulararrayisthevalueofLIMIT,whatistheindex指针ofthelastiteminthatarray?(D)(八)LIMIT(B)O(C)LIMIT/2(D)LIMIT-I8Ifafileopenedforreadingdocsnotexist,whichofthefollowingeventswilloccurinJava?(D)(A) A
4、NulipoinierExcepiionwillberaised.(B) Anewfilewillbecreated(C) Arun-timeerrorwilloccur(D) AFilcNotFoundExccptionwillberaised.9Adesignpatternistypicallyusedlo(D)(A) allowtheuseofobject-orientatedconceptsinalanguagethatisnotobject-oriented(B) reducethenumberofclassesinthedesignofaprogram(C) ensurethatc
5、odeexecutesatoptimalspeedduringntimc(D) describeapracticalsolutiontoaCOmmOndesignproblem10Whichofthefollowingstatementsis(are)teinJava?(B)IClassesthatcontainabstractmethodsmustbedeclaredabstract.IIClassesthatcontainprotectedmethodsmustbedeclaredabslct.(八)1andIl(B)Ionly(C)IIonly(D)NoneH. Fill in blan
6、ks. (10 points* 1 point each )6 Whichofthefollowingstatementsisnottrueofleclassjava.util.ArrayList?(B)(A) AninstanceofArrayListcangrowtoaccommodatenewitemswhenthecollectionisfull.(B) Onceanobjectisinsertedinto插入aninstance实例OfArrayList.itcanneverberemoved.(C) ItemsstoredbyaninstanceofArrayListcanbeac
7、cessedusingintegerindexes.(D) TheconstructoroftheAayListclass,whencalledwithnoarguments,causesanemptyArrayListtobeconstructed.7 ACOneCtiOn聚集IyPiCanymOdekarelationship?(C)(八)many-(o-many(B)zcro-(o-onc(C)one-to-many(D)one-to-one1 A单例designpatternCansuretomakeonlyoneobjectinthesoftwaresystem.2 InaUMLcl
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2012 2013 ssd3 考试 试卷