版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、東華軟件股份公司 -NET 面試題 ( 試題 )東華軟件股份公司DHC Software Co., Ltd姓名:學(xué)校:專業(yè):學(xué)歷:聯(lián)系方式:E-mail:考試時(shí)間:試卷:滿分100分共20題閱卷時(shí)間: 閱卷人: 對(duì)題 錯(cuò)題 成績(jī):一.選擇題(中文)1. C#的數(shù)據(jù)類型有()a)值類型和調(diào)用類型;b)值類型和引用類型;c)引用類型和關(guān)系類型;d)關(guān)系類型和調(diào)用類型:2. in1 myArray3=new int3 new int35,6,2,new int56,9,7,8,3,new int23,2; myArray322的值是().a)9b)2c)6d)越界3. 以下的C#代碼,試圖用來定義一
2、個(gè)接口:public interface IFileint A;int delFile()A = 3;void disFile();關(guān)于以上的代碼,以下描述錯(cuò)誤的是()。a)M上的代碼中存存的錯(cuò)溟包括:不能存攝中定義變圮.所Mint A代碼行將出現(xiàn)錯(cuò)溟:b)以上的代碼中存在的錯(cuò)誤包括:接口方法delFile是不允許實(shí)現(xiàn)的,所以不能編寫具體的實(shí)現(xiàn)函數(shù);c)代碼void disFile();聲明無(wú)錯(cuò)誤,接口可以沒有返回值;d)代碼 void disFileO;應(yīng)該編寫為 void disFile()0:4. 下列描述錯(cuò)誤的雄()a)類不可以多重繼承而接口可以;b)抽象類自身可以定義成員而接口不可以
3、;c)抽鐵類和接口都不能被實(shí)例化;d)一個(gè)類可以有多個(gè)基類和多個(gè)基接口:5. 接口是一種引用類型,在接口中可以聲明(),但不可以聲明公有的域或私有的成員變量。a)方法、屬性、索引器和事件:b)方法、屬性信息、屬性;c)索引器和字段:d)事件和字段;二.選擇題(英文)6. You use Visual Studio .NET to develop a Windows-based application Your application will display customer order information from a Microsoft SQL Server database The
4、orders will be displayed on a Windows Form that includes a DataGrid control named DataGridl. DataGridl is bound to a DataView object. Users will be able to edit order information directly in DataGridl. You must give users the option of displaying only edited customer orders and updated values in Dat
5、aGridl What should you do?A: Set the RowStateFilter property of the DataView object to DataViewRowState.ModifiedOriginaLB: Set the RowStateFilter property of the DataView object to DataViewRowState.ModifiedCurrent.C: Set the RowFilter property of the DataView object to DataViewRowState.ModifiedOrigi
6、naLD: Set the RowFilter property of the DataView object to DataViewRowState.ModifiedCurrent 7. Another developer in your company uses Visual Studio NET to create a component named MyComponent. You deploy MyComponent to a server When you execute MyComponent, you receive the following error message: ,
7、fSystem.Security.Policy.PolicyException: Failed to acquire required permissions.v As quickly as possible, you need to discover which permissions are required by MyComponent. What should you do?A: Request the source code from the developer who created MyComponent. Examine the source code to find the
8、required permissions.B: Run the Microsoft CLR Debugger (DbgCLR.exe) on the server to view the permissions requested by the application at run time.C: Run the Runtime Debugger (Cordbg.exe) on the server to view the permissions requested by the application at run time.D: Run the Permissions View tool
9、(Permview.exe) on the server to view the permissions required by MyComponent.E: Run the MSIL Disassembler (Ildasm.exe) on the server to view permission requests by MyComponent that were denied.8. You use Visual Studio .NET to create an application. Your application contains two classes, Region and C
10、ity, which are defined in the following code segment. (Line numbers are included for reference only.)01 public class Region 02 public virtual void CalculateTax() 03/ Code to calculate tax goes here.04 05 06 public class City:Region 07 public override void CalculateTax() 08/ Insert new code.09 10 You
11、 need to add code to the CalculateTax method of the City class to call the CalculateTax method of the Region class. Which code segment should you add on line 08?A: CalculateTax();B: this.CalculateTax();C: base.CalculateTax();D: Region r = new Region();r.CalculateTax();9. You use Visual Studio .NET t
12、o create an application that uses an assembly. The assembly will reside on the client computer when the application is installed. You must ensure that any future applications installed on the same computer can access the assembly. Which two actions should you take? (Each correct answer presents part
13、 of the solution. Choose two.)A:Use XCOPY to install the assembly in the global assembly cache.B:Use XCOPY to install the assembly in the WindowsAssembly folder.C:Create a strong name for the assembly.D:Precompile the assembly by using the Native Image Generator (Ngen.exe). E:Modify the application
14、configuration file to include the assembly.F:Use a deployment project to install the assembly in the global assembly cache. G:Use a deployment project to install the assembly in the WindowsSystem32 folder.10. You use Visual Studio .NET to create a component named Request. This component includes a m
15、ethod named AcceptRequest, which tries to process new user requests for services. AcceptRequest calls a private function named Validate.You must ensure that any exceptions encountered by Validate are bubbled up to the parent form of Request. The parent form will then be responsible for handling the
16、exceptions. You want to accomplish this goal by writing the minimum amount of code.What should you do?A: Use the following code segment in AcceptRequest: this.Validate();B: Use the following code segment in AcceptRequest:try this.Validate();catch(Exception ex) throw ex;C: Use the following code segm
17、ent in AcceptRequest:try this.Validate();catch(Exception ex) throw new Exception(Exception in AcceptRequest, ex);D: Create a custom Exception class named RequestException by using the following code segment:public class RequestException:ApplicationException public RequestException():base() public Re
18、questException(string message):base(message) public RequestException(string message, Exception inner):base(message, inner) In addition, use the following code segment in AcceptRequest: try this.Validate(); catch(Exception ex) throw new RequestException(Exception in AcceptRequest, ex);三簡(jiǎn)答題:11 :.NET 中主要有那幾種類型的控件,各有什 么區(qū)別?列舉一些常用控件的屬性和事件?12 :.NET 中主要的類庫(kù)有那些,以及在實(shí)際中 的使用方向?13 :介紹 ADO.NET 中幾個(gè)數(shù)據(jù)庫(kù)處理的核心 對(duì)象,以及各自的優(yōu)缺點(diǎn)。14 :try 里有一個(gè) return 語(yǔ)句,那么緊跟在 這個(gè) try 后的 finally 里的 code 會(huì)不會(huì)被執(zhí) 行,什么時(shí)候被執(zhí)行,在 return 前還是后 ?15:C#中主要有那幾種循環(huán)語(yǔ)句,相互之間的 區(qū)別?16:軟件開發(fā)過程一般有幾個(gè)階段?每個(gè)階段的 作用
溫馨提示
- 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度出租房水電費(fèi)分時(shí)電價(jià)應(yīng)用合同3篇
- 二零二五年度農(nóng)場(chǎng)租賃合同農(nóng)業(yè)產(chǎn)業(yè)鏈整合協(xié)議4篇
- 2025版新型綠色建材采購(gòu)供應(yīng)合同4篇
- 2025年度電商企業(yè)風(fēng)險(xiǎn)管理與服務(wù)協(xié)議4篇
- 2025年度民間擔(dān)保公司資產(chǎn)抵押擔(dān)保合同模板4篇
- 2025年度門業(yè)市場(chǎng)調(diào)研與營(yíng)銷策劃合同4篇
- 二零二五年度農(nóng)產(chǎn)品電商平臺(tái)物流配送合同3篇
- 地域文學(xué)中的地域特色語(yǔ)言-深度研究
- 2025年度船舶空調(diào)系統(tǒng)檢修與維護(hù)合同4篇
- 2025年度個(gè)人與體育公司贊助貸款合同范本3篇
- 【地理】地圖的選擇和應(yīng)用(分層練) 2024-2025學(xué)年七年級(jí)地理上冊(cè)同步備課系列(人教版)
- (正式版)CB∕T 4552-2024 船舶行業(yè)企業(yè)安全生產(chǎn)文件編制和管理規(guī)定
- JBT 14588-2023 激光加工鏡頭 (正式版)
- 2024年四川省成都市樹德實(shí)驗(yàn)中學(xué)物理八年級(jí)下冊(cè)期末質(zhì)量檢測(cè)試題含解析
- 九型人格與領(lǐng)導(dǎo)力講義
- 廉潔應(yīng)征承諾書
- 2023年四川省成都市中考物理試卷真題(含答案)
- 泵車述職報(bào)告
- 2024年山西文旅集團(tuán)招聘筆試參考題庫(kù)含答案解析
- 恢復(fù)中華人民共和國(guó)國(guó)籍申請(qǐng)表
- 管理期貨的趨勢(shì)跟蹤策略 尋找危機(jī)阿爾法
評(píng)論
0/150
提交評(píng)論