版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
经典word整理文档,仅参考,双击此处可删除页眉页脚。本资料属于网络整理,如有侵权,请联系删除,谢谢!WuxiDevelopmentCenterscreeningexams(90minutes)Name:___________________;Score:PartI___,PartII____,PartIII____:Total_____PartI--Skill1.Ifamethodismarkedasprotectedinternalwhocanaccessit?A)ClassesthatarebothinthesameassemblyandderivedfromthedeclaringclassB)Classeswithinthesameassembly,andclassesderivedfromthedeclaringC)OnlymethodsthatareinthesameclassasthemethodinquestionD)Internalmethodscanbeonlycalledusingrelection2.InObjectOrientedProgramming,howwouldyoudescribeencapsulation?A)TheconversionofonetypeofobjecttoB)Theruntimeresolutionofmethodcalls.C)Theexpositionofdata.D)Theseparationofinterfaceandimplementation.3.WhencreatingaC#ClassLibraryproject,what’sthenameofthesupplementaryfilethatVisualStuidio.NETcreatesthatcontainsGeneralInformationabouttheassembly?A)AssemblyInfo.xmlB)AssemblyInfo.csC)AssemblyInformation.csD)AssemblyAttributes.cs4.Whatisadelegate?A)AstronglytypedfunctionpointerB)AlightweightthreadorprocessthatcancallasinglemethodC)AreferencetoanobjectinadifferentprocessD)Aninter-processmessagechannel5.Whatisboxing?A)Encapsulatinganobjectinavaluetype.B)Encapsulatingacopyofanobjectinavaluetype.C)Encapsulatingavaluetypeinanobject.D)Encapsulatingacopyofavaluetypeinanobject.6.WhichofthefollowingisnotamethodofSystem.Object?A)B)C)EqualsD)Clone7.Whichofthefollowingisavaluetype,andnotareferencetype?共1页共8页A)arrayB)delegateC)enumD)class8.WhatisasatelliteAssembly?A)Aperipheralassemblydesignedtomonitorpermissionsrequestsfromanapplication.B)AnyDLLfileusedbyanEXEfile.C)Anassemblycontaininglocalizedresourcesforanotherassembly.D)Anassemblydesignedtoaltertheappearanceor.skin.ofanapplication.9.HowtoimplementMultipleInheritancesinC#?A)UsingInterfaceB)UsingAbstractClassC)UsingDelegatesD)UsingEvents10.Whichofthesestatementscorrectlydeclaresatwo-dimensionalarrayinC#?A)int[,]myArray;B)int[][]myArray;C)int[2]myArray;D)System.Array[2]myArray;11.Whichinterfaceallowsacollectiontobenavigatedusingtheforeachstatement?A)INavigatorB)ICollectionC)IEnumeratorD)IEnumerable12.C#typesaredefinedin____,organizedby____,compliedinto____,andthengroupedinto____.A)files,modules,namespaces,assembliesB)files,namespaces,assemblies,modulesC)files,assembiles,namespaces,modulesD)files,namespaces,modules,assemblies13.InADO.NET,forCommandobject’smethodExecuteNonQuery()andExecuteReader(),whichofthefollowingstatementiswrong?A)insert,updateanddeleteisexecutedmainlyusingExecuteNonQuery()B)ExecuteNonQuery()willreturnthenumberofrowsthatisaffectedbytheexecutedsqlC)selectcanonlyexecutedbyExecuteReader()D)ExecuteReader()willreturnaDataRederobject14.WhichofthefollowingoperationscanyouNOTperformonanADO.NETDataSet?A)aDataSetcanbesynchronisedwithaRecordSet.B)aDataSetcanbesynchronisedwiththedatabase.共2页共8页C)aDataSetcanbeconvertedtoXML.D)caninfertheschemafromaDataSet15.InC#,thegeneralstepsofnetworkcommunicationprogrammingwithSocketis:createSocketlistener,()andsendorreceivedatabySocket。A)createSocketconnectionB)getportnumberC)getIPaddressD)gethostname16.Whichofthefollowingisthecorrectwaytodisablesessionstateinanpage?A)<%@PageSessionState="false"%>B)<%@PageUseSessionState="false"%>C)<%@PageDisableSessionState="true"%>D)<%@PageEnableSessionState="false"%>17.Whichofthefollowingisnotserversidecontrol?A)HtmlInputButtonB)RadioButtonC)DropDownListD)CheckBox18.Ifwemustmakesurethattheclientinputvalueisgreatthan30,whichvalidationcontrolshoulduse?A)RequiredFieldValidatorC)RangeValidatorB)CompareValidatorD)RegularExpressionValidator19.Therearemanymethodtomaintainstateinwhichofthefollowingisonclientside?A)20.HowlongisthedefaultlifecycleofCookies?A)20minutesB)30minutesC)onedayB)SESSIONC)APPLICATIOND)CACHED)invalidwhenbrowserclose21.getuserIPofpageswithoutputcacheinrealtime,whichofthefollowingeventcanweuse?A)Page.InitB)HttpApplication.BeginRequestD)NoneofaboveC)Page.Load22.In,whichofthefollowingstatementaboutVaryByParampropertyusedwhensetpagecacheisright?A)representthetimethatpageistobecached,measuredbysecondB)itisusedtospecifytheplaceofoutputcacheC)thispropertycanbesetto"none"共3页共8页D)itisusedtochangeoutputcacheofusercontrol23.Readthefollowingstatementabout(1)eachHttprequestcontainstwopart:headandbody(2)ifHttprequesttypeisGet,thedataissendbybody,ifrequesttypeispost,thedataissendbyheadA)(1)right,(2)rightB)(1)right,(2)wrongC)(1)wrong,(2)rightD)(1)wrong,(2)wrong24.What’sthetransportprotocolyouusetocallaWebservice?A)HTTPandSOAPB)TCPandHTTPC)UDPandSOAPD)TCPandFTP25.AcompleteHTMLdocumentmustcontain3elements,theyarehead,htmland(A)script26.Whichpseudo-classcandefinethestylewhenmouseisoveralink?A)a:visitedB)a:linkC)a:hoverD)a:active27.WhichofthefollowingisnotCSSselector?B)bodyC)titleD)linkA)HTMLtagC)classB)variableD)ID28.Whichofthefollowingjavascriptcanpopupaalertdialogbox?A)document.alert(test)B)C)document.alert('test')D)window.alert('test')29.What’stheoutputofthefollowing(JavaScript)?varaa=newArray(1,2,4,5,3,6);varc=0;for(vari=0;i<aa.length;++i){c+=aa.pop();}document.write(c);Note:Array.pop()istoremoveandreturnthelastelementofthearrayA)7B)14C)21D)Noneofabove30.Forregularexpression([0-9a-z]{4,})|(\..{3,6}),whichofthefollowingdosenotmatch?共4页共8页A)2asdB).&8#C)avdf*D).adsPartII--ProgramSkill1.Nowthereisatablenamed“tree”,itsstructureis:parentIDintNameisDeletebitIntVarcharThefollowingprogramistodeleteagiventreenodeandallofitschildnode,allexceptionhandlingcodehavebeenomitted.Pleasefillblanksintheprogram,notethatyoucanwriteonlyonestatementineachblank.publicclass{privateintID;privateintparentID;privatestringname;privateboolisDelete;publicvoiddeleteNode(){DBUtil.execUpdate(“UPDATEtreeSETisDELETE=1WHEREID=”+this.ID);}publicboolhasChildren(){returnstatement1;}publicgetChildren(){returnDBUtil.execQuery(“SELECT*FROMtreeWHEREisDelete=0andparentID=”+this.ID);}publicvoiddelete(){if(!hasChildren())statement2;else{childingetChildren())statement;deleteNode();}}}publicclassDBUtil共5页共8页{//executespecificsqlqueryandassemblyreturneddatatoarraypublicstaticexecQuery(stringsql){//codeomitted}/***executeupdatesql**/publicstaticvoidexecUpdate(stringsql){//codeomitted}}2.ThefollowingprogramistojudgewhetherthereisamainelementisaintegerarrayT[n].Mainelementistheelementwho’soccurrencetimeismorethann/2.Fillblanksintheprogram;notethatyoucanwriteonlyonestatementineachblank.privatestaticbooleanhasMaster(intdata[]){intn=data.Length;intcount=0;intseed;seed=data[0];for(inti=1;i<n;i++){if(seed==data[i])count++;else{if(count>0)count--;elsestatement;}}count=0;for(inti=0;i<data.n;i++){if(seed==data[i])statement2}statement3returntrue;returnfalse;}共6页共8页PartIII--LogicSkill一、数字推理给你一个数列,但其中缺少一项,要求你仔细观察数列的排列规律,然后从四个供选择的答案中选择你认为最合理的一项,来填补空缺项,使之符合原数列的排列规律(只有一个最佳答案)。1.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 委托融资合同(2篇)
- 《神经网络》课件第1章
- 《怎样拯救我们脑》课件
- 《兴义查白歌节》课件
- 2024全新电商主播劳动合同及培训协议3篇
- 《酒吧提案案例》课件
- 2024年医院专业诊所租赁合同及医疗服务协议3篇
- 九年级宾语从句复习课件
- 物联网项目招投标合同管理要点
- 物流管理班主任聘用协议
- 沟通的艺术智慧树知到期末考试答案章节答案2024年湖南师范大学
- DB32-T 4757-2024 连栋塑料薄膜温室建造技术规范
- 建筑信息模型技术员理论知识考试题库
- 中国越剧•唱腔智慧树知到期末考试答案2024年
- 汽车品牌文化(吉林联盟)智慧树知到期末考试答案2024年
- 海洋学海上实践教学智慧树知到期末考试答案2024年
- 2024年国家粮食和物资储备局垂直管理系事业单位招聘笔试参考题库附带答案详解
- “微时代”下的“微课”浅析
- 国企矿业招聘考试题库答案
- 常用统计技术在质量管理中的应用
- 某中央空调机房拆除施工方案
评论
0/150
提交评论