【正文】
對(duì)象。將指定的程序集證據(jù)添加到程序集C、 Evidence evidence=new Evidence()。你必須確保給程序集提供的默認(rèn)證據(jù)被重寫(xiě),并且創(chuàng)建一個(gè)新的證據(jù)集。C不正確,GetMethod(“方法名”),不需要加類(lèi)名的限定符。MethodInfo m=(“MyMethod”)。Type t=typeof(Class01)。Type t=typeof(Class01)。Type t=typeof(Class01)。如下:MyMethod function.public class Class01{public int MyMethod(int arg){ return arg。SecurityZone是一個(gè)枚舉,定義與安全策略所使用的安全區(qū)域相對(duì)應(yīng)的整數(shù)值。AppDomain domain=new AppDomain(“ChildDomain”,childEvidence)。(“ChildDomain”,childEvidence)。1 question 11You work as an application developer at . You are required to dynamically load assemblies into a custom child application domain. 。C、 ()。()。在工作上有了新的要求,需要?jiǎng)?chuàng)建一個(gè)類(lèi)庫(kù)。無(wú)法繼承此類(lèi)。(())。A、 AppDomain domain=。正在開(kāi)發(fā)一款A(yù)pp01的應(yīng)用程序。}點(diǎn)評(píng):引入線(xiàn)程 ThreadStart 該委托不能帶參數(shù) ParameterizedThreadStart 該委托可以帶參數(shù) question 6You work as the application developer at . uses Visual as its application development platform. 。AppSP(myValues)。Thread newThread=new Thread(delStart)。 Thread newThread=new Thread(new ThreadStart(AppSP))。You must configure the application’s user interface(UI) so that it continues to respond for the duration that calculations are must write the code segment for calling the AppSP procedure which will acplish your the code segment which you should use.你必須配置應(yīng)用程序的用戶(hù)界面,以便它在進(jìn)行計(jì)算期間能夠繼續(xù)做出響應(yīng)。 Question 5You work as the application developer at . You are working on a new application named App01. App01 is configured to perform a series of mathematical calculations.。方法里改變了這個(gè)變量;而當(dāng)方法返回時(shí),變量的值并沒(méi)有被改變。在新的用戶(hù)帳號(hào)下要運(yùn)行App01,你必須做一些相應(yīng)的配置。//Process other user instructionsstring strFile=(result)。string strFile=()。你應(yīng)該怎么做?A、 Use the following code://創(chuàng)建委托對(duì)象并且實(shí)例化GetFileContentsDel delAsync=new GetFileContentsDel(GetFileContents)。 Question 2You work as an application developer at . You have recently created an application that include the code shown below.。You are required to choose a data structure that optimizes(優(yōu)化) memory use and has good performance.請(qǐng)你選擇一個(gè)數(shù)據(jù)結(jié)構(gòu),以便優(yōu)化內(nèi)存使用,具有良好的性能。.. .. .. .. question 1You work as the application developer at . uses Visual 2005 as its application development platform.。What should you do?該如何做?A、 The class should be usedB、 The class should be usedC、 The class should be usedD、 The class should be used點(diǎn)評(píng):SortedList 表示鍵/值對(duì)的集合,這些鍵值對(duì)按鍵排序并可按照鍵和索引訪問(wèn)。最近你創(chuàng)建了一個(gè)應(yīng)用程序,包含如下的代碼:public delegate string GetFileContentsDel()。IAsyncResult result=(null,null)。 //直接調(diào)用C、 Use the following code:string strFile=()。 點(diǎn)評(píng):IAsyncResult 包含異步操作的方法的類(lèi)實(shí)現(xiàn)。下一步應(yīng)該做什么?A、 Before Deploying App01,specify the startType property of the ServiceInstaller class.B、 Before delploying App01,specify the Account,Username,and Password properties of the ServiceProcessInstaller class.在部署App01之前,指定賬戶(hù),用戶(hù)名和密碼的ServiceProcessInstaller類(lèi)的屬性。這是為什么?(選擇一項(xiàng))A、 The variable was not initialized before it was passed in.該變量在傳入的時(shí)候沒(méi)有被初始化B、 Passing a value type into a procedure creates a copy of the data.向方法里傳入值類(lèi)型的變量,實(shí)際上是傳入了一個(gè)數(shù)據(jù)的副本。正在開(kāi)發(fā)一款新的應(yīng)用程序,名字叫App01;App01配置為執(zhí)行一系列的數(shù)學(xué)計(jì)算。你必須編寫(xiě)用于調(diào)用AppSP程序的代碼,以實(shí)現(xiàn)上述目標(biāo)。 (myValues)。if(){ new (myValues)。()。You are developing a .NET Framework financial application and are busy developing a module that backs up the critical data on a separate hard drive. ,并忙于開(kāi)發(fā)一個(gè)模塊,備份關(guān)鍵數(shù)據(jù)到一個(gè)獨(dú)立的硬盤(pán)驅(qū)動(dòng)器(硬盤(pán))You are required to decide which properties of the DriveInfo class to use and find the type of file system like FAT or NTFS and the drive free space and the user disk quota(配額/指標(biāo)) should be ignored by the application.你必須決定DriverInfo類(lèi)使用的參數(shù),找到像FAT或者NTFS類(lèi)型的文件系統(tǒng)和磁盤(pán)的可以空間,并使應(yīng)用程序忽略用戶(hù)磁盤(pán)的配額。該程序必須配置為使用基于角色安全和身份驗(yàn)證。()B、 AppDomain domain=。D、 AppDomain domain=。 Question 9Given the best answer,which of the following lines of code would reverse(反向/倒轉(zhuǎn)) the security restriction?(Choose all than apply) 給出最好的答案,下面的那個(gè)代碼行會(huì)破壞安全限制?(選擇多項(xiàng))‘VB ‘注釋Dim e as EventLogPermission=New EventLogPermission()PermitOnly//CEventLogPermission e=new EventLogPermission()。The class library must be deployed to the global assembly cache, with full trust granted. To cater for network socket connections being used, you develop this code segment。You discover though that there are certain existing applications which do not have the required permissions to open the network socket connections. You decide to cancel the assertion. Choose the code segment which will acplish this task.你發(fā)現(xiàn),雖然有一些現(xiàn)有的應(yīng)用程序不具有所需的權(quán)限打開(kāi)網(wǎng)絡(luò)套接字連接,你決定取消這一斷言,選擇代碼段將完成這項(xiàng)任務(wù)。D、 ()。要求動(dòng)態(tài)的加載程序集到一個(gè)自定義的子應(yīng)用程序域。B、 Use the following code to create the child application domain:(“ChildDomain”,)。點(diǎn)評(píng):Evidence(證據(jù)) AppDomain:表示應(yīng)用程序域,它是一個(gè)應(yīng)用程序在其中執(zhí)行的獨(dú)立環(huán)境。() (“字符串”, Evidence對(duì)象)。}}You want the function to be dynamically called from a separate class within the assembly.。MethodInfo m=(“MyMethod”)。MethodInfo m=(“MyMethod”)。MethodInfo m=(“”)。int i=(int)(this,new object[]{1})。1 Question 13You work as the application developer at . You are working on an existing application and must load a new assembly into this application. You must write the code segment that will require the mon language runtime(CLR) to grant the assembly a permission set,as though the assembly was loaded from the local intranet must ensure that the default evidence for the assembly is overridden and must create the evidence collection.。Choose the code segment which will acplish this task.A、 Evidence evidence=new Evidence(().Evidence)。(new Zone())。該類(lèi)有兩個(gè)與證據(jù)源(主機(jī)證據(jù)和程序集證據(jù))對(duì)于的集合。用戶(hù)數(shù)據(jù)庫(kù)非常簡(jiǎn)單,只存儲(chǔ)用戶(hù)名和組成員。你正在創(chuàng)建一個(gè)新的代碼段將被用于用戶(hù)認(rèn)證和授權(quán)的目的(用途)。String[]userRolesArray=LookupUserRoles(userName)。=currentUser。C、 NTAccount userNTName=new NTAccount(userName)。D、 IntPtr token=。:復(fù)制文件內(nèi)容從客戶(hù)端機(jī)器(XXYYincWS007)的一個(gè)文件到服務(wù)器端(Server01)的新文件。A、 Add the following code to the copy method:(())。C、 Add the following code to the copy method:((),false)。點(diǎn)評(píng):FileSecurity 表示文件的訪問(wèn)控制和審核安全C參數(shù)不正確;A沒(méi)有設(shè)置;D設(shè)置錯(cuò)誤1 Question 17You work as the application developer