还剩5页未读,继续阅读
文本内容:
(考证试题考证试题)net.netnet考证试题.net考证试题The firstpart iswrittenexamination First,the multiple-choice question1,about theHTML TABLEstatement,the erroris:C Thewidth property of the A tablecan beset to a pixel value or percentage.The heightpropertyof the Btablecan be settoapixelvalueorpercentage.C if the borderpropertyis notspecified,the defaultwidth of the formis
1.The Dtable andthebackground colorof thecell can besetat the same time.
2.Whichof the following objectsis usedto establisha connectionwith thedatasource:B ACommand BConnection CDataReader DDataAdapter
3、when doesthe Session_Start eventin theGlobal,asax fileexcite BAfires atthe beginningof eachrequest Battempts tofire whenusingauthentication Cfires whenthe sessionis startedD fireswhenapplication starts4,HTML usesanchor tagsa tocreate alink toanotherfile,the linkedresource D.A canonly beHTML pagesandimages B cannot besound Ccan tbe amovie Dcan beany resourceonthe network5,regarding theHTML frameworkstatement,the erroris:A TheA frametag defineshow tosplit awindow intoa framework.Bcanwrite noframestags tobrowsers thatdo notsupport frames.Theindividual pagesin theC HTMLframeworkare independentof eachother.The useoftheD HTMLframeworkmakes printingthe entirepage difficult.
6.Which ofthe followingfilesis theglobal configurationfile B A Global,asax BWeb.configC Styles,css DAssemblylnfo.vb7,the followingstatement iscorrectB Thereis somethingdynamic on theApage,that is,dynamic web pagesB staticwebpageshave fixedcontent andinteractivity can be worsethandynamic webpages C,ASP,JSP,and ASP.NET technologiesall embedscriptinglanguages intoHTML documentsThe DASP.NET program,likethe ASPprogram,is interpretedand executed8,when youaccess anSqlServerdatabase ina ASP.NET application,the namespaceyou needtoimport isBA,System.Data.Oracle,B,System.Data.,SqlClientC System.Data.ODBC DSystem.Data.OleDB9,you canuse thebuilt-inobject Dto passvalues acrosseach pageof yourapplication ARequestB ApplicationC SessionD aboveis OK10,if youneed toensure thatusersenter valuesgreater than30,you shoulduse Cvalidationcontrols ARequiredFieldValidator BCompareValidator CRangeValidatorDRegularexpression_rValidator11which ofthe followingis notthe Dofthe webpage fileA,HTM,B,ASPX,C,ASP,D,TXT
12.How manyminutesis thedefault validityoftheSession object:C A10,B15,C20,D applications,from startto finishSecurity tip:if thereis anypropertyinvolved in the chat,please checkyour friends identityfirst.Send authenticationquestions orclick onthe reportNepenthes16:06:
3813.The followingvalidation controlfor ASP.NET describestheerror asA Acanbevalidated onboth theclient andserver sideB,its clientauthentication andserver-side validationapply toallbrowsers Cifthepage callsmore thanone validationcontrol,whenone ofthem isnot validated,The entirepage willnot bevalidatedD aserver controlcanbeverified bymultiple validationcontrols atthesame time14,the followingstatement aboutoverloading isincorrectC TheA methodname isthesameThe Bparameter listisdifferent Creturn valuetypes aredifferent TheD methodsigning isdifferent15,onthedifference betweenOverload andOverride,thedescription isincorrect DA overloadrefers tooverloading Boverridemeans rewritingC,override,and virtualappear inpairs Dis overridden withNew,and overrideisoverridden16,aboutpolymorphism,thefollowingstatement iscorrect DA polymorphismmeansoverloading Bpolymorphism meansrewriting TheC polymorphismisa subclassobject tothe superclassobject touse Dabove statementisincorrect
17.What isthe contentwe seeinthebrowser afterthefollowing programhas beenexecuted A%Response.Write aSina href=/a%A Sina,B,a,href=,Sina,/a CSina D,this sentenceis wrong,nothing showsTwo.Fill inthe blanks
1.known str=1234567890LeftSTR,2=12Right STR,2=90Len STR=10Mid STR,3,3=3452o要求从和请求QueryString对应的是形式提交时的两种不同提交方法—取得客户端在从表单中所输入的信息方法和从查询字符串中读取用户提交的数据—方法三.应用供应两个事务—application_onstart,应用起先的时候调用该事务;application_onend,应用结束时调用该事务4服务器听是把—虚拟路径—转换为—实际的物理路径—50ADO模型定义了3个一般对像,分别为一连接—对象、—叮嘱_对象、datareader_对象6oC#中重载和重写分别对应overload和override关键字7几乎全部的HTML标记都可以转化为HTML服务器控件,只须要在标记中加入_runat二服务器即可8控件TextBox的AutoPostBack属性的作用是—自动提交—9O服务器mappath方法的主要功能是10叮嘱对象executenoquery方法的功能是—执行非查询T-SQL语句—IE多态包括—运行时—多态和—编译时—多态12重载指的是同一个类中的两个方法—方法名—相同,—参数列表不同13面对对象的语言的三个主要特性是—封装_、—继承和—多态—O14oaspx网页的代码储存模式有两种,它们是一代码分别模式—和—单一模式.代码分别模式15o当一个Web控件上发生的事务须要立刻得到响时,应当将他的AutoPostBack属性设置为真实
三、推断题正确的在括号内填,错误的填lo离开了网站,ASP网页能够单独运行2O网站配置是网站中必需的配置文件30href属性不能用来指定到一个邮箱地址
4、HS可以同时管理多个应用程序
5、HS要求默认文档的文件名必需为默认或指数,扩展名则可以是.htm、ASP等已为服务器支持的文件扩展名o
四、简答题lo假如在一个B/S结构的系统中须要传递变量值但是又不能运用会话cookie,、、应用,您有几种方法进行处理?答this,server,transfer响应redirect------查询2GC是什么?为什么要有GC答GC是垃圾收集器程序员不用担忧内存管理,因为垃圾收集器会自动进行理要请求垃圾收集,可以调用下面的方法之一gc系统运行时getruntime gc3o接口是否可继承接口?抽象类是否可实现实现接口?抽象类是否可继承实体类具体类?答接口可以继承接口抽象类可以实现实现接口,抽象类是否可继承实体类,但前提是实体类必需有明确的构造函数4string s二新的字符串XYZ;创建了几个字符串对象?答两个对象,一个是XYX,一个是指向xyx的引用对象S.5o覆盖与重载的区分答重载是方法的名称相同参数或参数类型不同,进行多次重载以适应不同的须要是进行基类中函数的重写为了适应须要重写忘忧草16:07:54其次部分实操
五、编程题1利用递归求斐波那契数列第25个数的值10分公共int斐波那契int i{假如我二二1||我二二2{返回1;其他{}返回斐波那契i-1+斐波那契1-2}}2o利用冒泡排序方法,使数组int□SS={}从小到大排序13,5,67,39,87,34,98ostatic int[]SS=新13,5,67,39,87,34,98}{int[];static voidmainString[]args{bubble;printlist;}bubble{static voidint=0;对于int i=SS;计数;i0;i{对于int=0;j i1;j++{假如列出[j j+1]{温度[温度];SS[J=SS[j+1];SS[j=1]临时温度;}}printlist();}}私人printlist()static voidforeach(SS int项){限制台写入(字符串格式({},项目));}writeline()限制台;)。
个人认证
优秀文档
获得点赞 0