![考題附帶參級(jí)考試題_第1頁(yè)](http://file4.renrendoc.com/view11/M03/01/29/wKhkGWXdMfKATRo-AAHt_M2qJag526.jpg)
![考題附帶參級(jí)考試題_第2頁(yè)](http://file4.renrendoc.com/view11/M03/01/29/wKhkGWXdMfKATRo-AAHt_M2qJag5262.jpg)
![考題附帶參級(jí)考試題_第3頁(yè)](http://file4.renrendoc.com/view11/M03/01/29/wKhkGWXdMfKATRo-AAHt_M2qJag5263.jpg)
![考題附帶參級(jí)考試題_第4頁(yè)](http://file4.renrendoc.com/view11/M03/01/29/wKhkGWXdMfKATRo-AAHt_M2qJag5264.jpg)
下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
一、選擇題1.InC#whatisbaseclassofallreferenceB.A.doublea一、選擇題1.InC#whatisbaseclassofallreferenceB.A.doublea=B.longb=C.stringc=D.intd=3.Choosetheoutputofthecodedoublea=10,b=B.C.D.7.WhichofthefollowingkeywordisusedwhenavirtualisrefinedbyaderivedA: 8.Whichofthefollowingarecorrectwaystopassaparametertoa1)ByA12)by3)by4)byBC9ifamethodismarkedasprotectedwhocanaccessAclassesinthedeclaringBonlymethodsthatareinthesameclassCclassedderivedfromthedeclaringDanywheretheapplicationhasareferencetoanobjectofthatbase10.Ifyouwanttoselectallthenumberswhicharegreeterthan1000inanintarray,whichofthefollowingcanyouuse?(LINQtoObject,LINQtoXML,LINQtoSQL,LINQtoDataSet,LINQtoB.LINQToXMLC.LINQToSQLD.NoneofThestatementf=delegate(intx){returnx+1;};isequivalenttowhichofthefollowingA.f(x)=>x+B.f(x)=x+C.f=>x+1;D.f=x=>x+1;InC#,wecanusethefollowingstatementtoconvertastringstoanintegernum1241)intnum=Convert.ToInt32(s);3)intnum=s.ToInt();4)intnum=二、判斷題Inaswitchstatement,everystatementsequenceinacaseclausemustbeterminatedwithbreak(orreturn,goto,throw).TPropertyclass,structinterface里。5.ifaconstructorwasdeclared,nodefaultconstructorisgeneratednestedtypescannotbeinterfacesanddelegatesOnlytheclassthatnestedtypescannotbeinterfacesanddelegatesOnlytheclassthatdeclarestheeventcanfireit.InC#,wecanonlythrowanexceptionbyaninvalidoperation.三、填空題(2*73*6Aconstructormaycallanotherconstructorwiththe InC#,ifyouwanttochangeathread’sstatefromsuspendedintorunning,youshouldcall .Resume() variablerepresentsclasswideinformationthatissharedbyalltheobjectsof靜態(tài)變class.In isusedtoretrievespecificelementinanenumerableobjectdirectlyIndexer索引InC#,isasetoftypesthatarecompiledtogetheranditisthesmallestunitfor程序anddynamicloading.泛型7.Thefollowingclassisoften Class.Buffer<Element>{privateElement[]data;publicBuffer(intsize){…}publicElement8.Supposeyouhaveadoublearraycallednumbers,pleasesumalltheelementsofthearrayforeach doublesum foreach(xin sum+=UsingSystem;classShowName(){}}classShowName(){}}classpublicnewvirtualvoid}}}}class}}class}} 12.Whatistheoutputofthefollowingprogram?UsingSystem;classintpublicFraction(intx,inty){this.x=x;this.y=}ToString(){returnx+“/”}publicoverrideintGetHashCode(){returnx^y;}o){Fractionf=(Fraction)o;returnf.x==x&&f.y==y;}publicFractionreturn}classFractiona=newFraction(1,2);Fractionb=newFraction(1,2);Fractionc=newFraction(3,4);Console.WriteLine(a==b);a=c.ShallowCopy();}} 13.Pleasefillintheblanks.namespacetest{publicclass{void} 13.Pleasefillintheblanks.namespacetest{publicclass{void//PleasewritecodetocallOnNew}}}}1.WhatisthedifferencebetweenOverloadingand重載Overloading:一個(gè)類(lèi)中定義了兩個(gè)或兩個(gè)以上的方法,這些方法參數(shù)數(shù)量不同或 重寫(xiě)Overriding:在子類(lèi)存在方法與父類(lèi)的名字相同而且參數(shù)的
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 出租車(chē)買(mǎi)賣(mài)合同范本
- 北京市居住房出租合同范本
- 消防噴淋改造協(xié)議書(shū)范本
- 班組安全協(xié)議書(shū)范本
- 生豬養(yǎng)殖場(chǎng)租賃合同范本
- 福建生物工程職業(yè)技術(shù)學(xué)院《創(chuàng)業(yè)經(jīng)營(yíng)與工業(yè)沙盤(pán)》2023-2024學(xué)年第二學(xué)期期末試卷
- 蘇科版數(shù)學(xué)七年級(jí)下冊(cè)《數(shù)學(xué)活動(dòng) 拼圖·公式》聽(tīng)評(píng)課記錄5
- 燕山大學(xué)里仁學(xué)院《石油與天然氣地質(zhì)學(xué)含實(shí)驗(yàn)》2023-2024學(xué)年第二學(xué)期期末試卷
- 唐山師范學(xué)院《數(shù)據(jù)庫(kù)原理及技術(shù)》2023-2024學(xué)年第二學(xué)期期末試卷
- 蘇州高博軟件技術(shù)職業(yè)學(xué)院《標(biāo)志設(shè)計(jì)》2023-2024學(xué)年第二學(xué)期期末試卷
- DB32-T 4319-2022 中藥藥渣處理規(guī)程
- 人工智能行業(yè)數(shù)據(jù)安全與隱私保護(hù)
- 包裝品質(zhì)彩盒外箱知識(shí)課件
- GB/T 9439-2023灰鑄鐵件
- (完整word版)Word信紙(A4橫條直接打印版)模板
- 向高層銷(xiāo)售:與決策者有效打交道
- 尼泊爾簡(jiǎn)介課件
- 嬰幼兒托育機(jī)構(gòu)管理與運(yùn)營(yíng)實(shí)務(wù)高職PPT完整全套教學(xué)課件
- 神經(jīng)外科課件:神經(jīng)外科急重癥
- 頸復(fù)康腰痛寧產(chǎn)品知識(shí)課件
- 2024年低壓電工證理論考試題庫(kù)及答案
評(píng)論
0/150
提交評(píng)論