西北大学2007 ----2008学年第1学期本科考试出题专用纸.doc
上传人:sy****28 上传时间:2024-09-12 格式:DOC 页数:3 大小:179KB 金币:16 举报 版权申诉
预览加载中,请您耐心等待几秒...

西北大学2007 ----2008学年第1学期本科考试出题专用纸.doc

西北大学2007----2008学年第1学期本科考试出题专用纸.doc

预览

在线预览结束,喜欢就下载吧,查找使用更方便

16 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

姓名年级院系专业学号西北大学2007----2008学年第1学期本科考试出题专用纸考试科目《Java程序设计》总分9.Whichofthefollowingisnotnecessarytousetheeventdelegationmodel?Aneventlistenermustberegistered.b.Aneventhandlermustbeimplemented.Theappropriateinterfacemustbeimplemented.d.Theappropriateinterfacemustberegistered.10.WhichconstructorbelowcreatesaJInternalFramethatisresizable,closable,maximizable,andminimizable?JInternalFramef=newJInternalFrame("InternalFrame",true,true,true,true);JInternalFrameframe=newJInternalFrame("InternalFrame",true,true,false,true);JInternalFrameframe=newJInternalFrame("InternalFrame",true,true,true,false);JInternalFrameframe=newJInternalFrame("InternalFrame",false,false,true,true);11.TheGridBagContraintsconstantRELATIVEmeansthatThecomponentisthelastcomponent.Thecomponentisthenexttolastcomponent.Thecomponentshouldbeplacedrelativetothepreviouscomponent.Bothbandc.12.Whichofthechoicesbelowdonotcompletethesentencecorrectly?A_________isa___________.JMenuBar/JComponent.b.JMenuItem/AbstractButton.JMenu/JMenuItem.d.JRadioButtonMenuItem/JMenu.13.classA{protectedintmethod(inta,intb){return0;}}WhichtwoarevalidinaclassthatextendsclassA?(Choosetwo)A.publicintmethod(inta,intb){return0;}B.privateintmethod(inta,intb){return0;}C.privateintmethod(inta,longb){return0;}D.publicshortmethod(inta,intb){return0;}E.staticprotectedintmethod(inta,intb){return0;}AandB.b.AandC.c.AandDd.BandC.e.BandDf.CandD14.AJFramesupportsthreeoperationswhentheuserclosesthewindow.Whichofthechoicesbelowisnotoneofthethree:DISPOSE_ON_CLOSE.b.DO_NOTHING_ON_CLOSE.c.LOWER_ON_CLOSE.d.HIDE_ON_CLOSE.15.WhichofthefollowingisnotanexistingclassinJava?ArithmeticException.DivideByZeroException.NumberFormatException.AlloftheaboveexistinJava.注意:答案必须写在统一配发的答题纸上。本试卷满分70分,平时成绩30分。一、SingleChoice(1pointperquestion,16points)1.Toindicatethatareferencealwaysreferstothesameobject,usethekeyword________.abstract.b.final.c.static.d.interface.2.Whichstatementbelowistrue?CallingrepaintforaSwingGUIcomponentalwayscausesthe