秋霞电影网午夜鲁丝片无码,真人h视频免费观看视频,囯产av无码片毛片一级,免费夜色私人影院在线观看,亚洲美女综合香蕉片,亚洲aⅴ天堂av在线电影猫咪,日韩三级片网址入口

微軟認證考試070-320

上傳人:xinsh****encai 文檔編號:114647798 上傳時間:2022-06-29 格式:DOC 頁數(shù):152 大?。?.32MB
收藏 版權(quán)申訴 舉報 下載
微軟認證考試070-320_第1頁
第1頁 / 共152頁
微軟認證考試070-320_第2頁
第2頁 / 共152頁
微軟認證考試070-320_第3頁
第3頁 / 共152頁

下載文檔到電腦,查找使用更方便

40 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《微軟認證考試070-320》由會員分享,可在線閱讀,更多相關(guān)《微軟認證考試070-320(152頁珍藏版)》請在裝配圖網(wǎng)上搜索。

1、 Exam : 070-320 Title : Developing XML Web Services and Server Components with Microsoft Visual C#.NET Ver : 11/02/06 QUESTION 1: 070-320 You develop an application named ckApp. This

2、application needs to run on the same computer as a Windows service named ckService. You want to ensure that ckService starts from ckApp if ckService is not already running. Which code segment should you use? A. ServiceController ckServiceController = new ServiceController("ckService"); if

3、(ckServiceController.Status == ServiceControllerStatus.Stopped) { ckServiceController.Start(); } B. ServiceController ckServiceController = new ServiceController("ckService"); ckServiceController.Start(); C. String[] ckArgs = new string [1]; ckArgs[0] = "ckService"; ServiceController ckServic

4、eController = new ServiceController(); if (ckServiceController.Status == ServiceControllerStatus.Stopped) { ckServiceController.Start(ckArgs); } D. String[] ckArgs = new string[1]; ckArgs[0] = "ckService"; ServiceController ckServiceController = new ServiceController(); myServiceController.Sta

5、rt(ckArgs); Answer: A QUESTION 2: Your Microsoft SQL Server database contains a table named CertK Orders. CertK Orders is used to store new purchase orders as they are entered into an order-entry application. To keep up with customer demand, the order fulfillment department wants to know

6、at 15-minute intervals when new orders are entered. You need to develop an application that reads CertK Orders every 15 minutes and sends all new orders to the order fulfillment department. The application will run on computer that is used by several users who continuously log on and log off fro

7、m the network to perform miscellaneous tasks. Which type of .NET application should you use? A. Windows Form B. Windows service C. XML Web service D. .NET Remoting object Answer: B Explanation: A Windows service would still be running even though users logs on and off. Incorrect Answe

8、rs A - The Power of Knowing 070-320 A: A Windows Form would be closed when a user logs off. C: An XML Web service is not guaranteed to keep running if a user logs off. D: You can use .NET Remoting to enable different applications to communicate with one another. However, a remoti

9、ng object would be destroyed when a user logs off the system. SECTION 2: Create and consume a serviced component. SUBSECTION 1: Implement a serviced component. (4 questions) QUESTION 3: You create a serviced component named CertK Item that implements an interface named I CertK Item. You wan

10、t to ensure that calls to the serviced component through I CertK Item are queued. What should you do? A. To CertK Item, add the following attribute: [InterfaceQueuing(true, Interface="I CertK Item")] B. To CertK Item, add the following attribute: [Transaction(TransactionOption.Disabled, Iso

11、lation=TransactionIsolationLevel.Serializable)] C. To the CertK Item assembly, add the following attribute: [assembly: ApplicationQueuing(Enabled=true, QueueListenerEnabled=true)] D. In the CertK Item implementation, override the Activate method from the ServicedComponent class. In the Activate

12、 method, add the following code segment: Queue q = new Queue(); q.Enqueue(this); Answer: C Explanation: In addition to enabling queued component support at the application level, you must mark your interfaces as capable of receiving queued calls. You do that by using setting the QueueListen

13、erEnabled attribute to True. Note: The COM+ Queued Components (QC) service provides an easy way to invoke and execute components asynchronously. Processing can occur without regard to the availability or accessibility of either the sender or receiver. Reference: .NET Framework Developer's Guide,

14、 Queued Components [C#] Incorrect Answers A: The signature for the InterfaceQueuing attribute as shown in Answer A is wrong. B: Transactions are not helpful for interface queuing configuration. D: Creating a new queue in the Active method is not correct in this scenario. QUESTION 4: You ar

15、e creating a serviced component named ItemCKInventory. An online catalog application will use ItemCKInventory to display the availability of products in inventory. Additional serviced components written by other developers will continuously update the inventory data as orders are placed. The It

16、emCKInventory class includes the following code segment: A - The Power of Knowing _ Public Class ItemCKInventory Inherits ServicedComponent ' Method code goes here. End Class 070-320 ItemInventory is configured to require transaction

17、s. You want ItemInventory to respond to requests as quickly as possible, even if that means displaying inventory values that are not up to date with the most recent orders. What should you do? A. To the ItemCKInventory class, add the following attribute: B. To all meth

18、ods of the ItemCKInventory class, add the following attribute: C. Modify the Transaction attribute of the ItemCKInventory class to be the following attribute: D. Modify the Transaction attribute of the ItemCKInventory cl

19、ass to be the following attribute: Answer: D Explanation: The ReadUncommitted transaction isolation level makes a dirty read is possible, meaning that no shared locks are issued and no

20、 exclusive locks are honored. This will reduce the number of locks, compared to the default transaction isolation level of readcommitted. Reduced number of locks will increase the performance. Incorrect Answers A: Object pooling is a COM+ service that enables you to reduce the overhead of creati

21、ng each object from scratch. However, object pooling is not much use in transactions. B: Autocomplete does not apply here. C: Timeout configuration would not address performance issue. Reference: .NET Framework Class Library, IsolationLevel Enumeration QUESTION 5: You are creating a servic

22、ed component named UserManager. UserManager adds user accounts to multiple transactional data sources. The UserManager class includes the following code segment: [Transaction(TransactionOption.Required)] [SecurityRole("Admin")] public class UserManager : ServicedComponent { public void AddUse

23、r(string CertK name, string CertK password) { // Code to add the user to data sources goes here. } } A - The Power of Knowing 070-320 You must ensure that the AddUser method reliably saves the new user to either all data sources or no data sources. What should you do? A. To

24、 AddUser, add the following attribute: [AutoComplete()] B. To UserManager, add the following attribute: [JustInTimeActivation(false)] C. To the end of AddUser, add the following line of code: ContextUtil.EnableCommit(); D. To the end of AddUser, add the following line of code: ContextUtil.My

25、TransactionVote = true; Answer: C Explanation: The TransactionOption.Required shares a transaction, if one exists, and creates a new transaction, if necessary. We should commit this transaction at the end of AddUser with ContextUtil.EnableCommit ( ) statement. Reference: .NET Framework Clas

26、s Library, ContextUtil Methods Incorrect Answers A: Autocomplete is out of context here. B: Just-in-time (JIT) activation is a COM+ service that enables you to create an object as a nonactive, context-only object. JIT does not apply here. D: Not useful. QUESTION 6: You create two serviced

27、 components named OrderPipeline and OrderAdmin. Each component is registered in a separate COM+ server application. Both components use pricing data. OrderPipeline reads the pricing data for placing user orders. OrderAdmin modifies the pricing data. You want to ensure that OrderPipeline accesses

28、 the pricing data as quickly as possible, while still being able to immediately retrieve any pricing changes made by OrderAdmin. What should you do? A. Store the pricing data in the Shared Property Manager. B. Store the pricing data in Microsoft SQL Server database. C. Store the pricing data

29、 in a Hashtable object within OrderAdmin. Expose the Hashtable object through a property on OrderAdmin. D. Store the pricing data in an XmlDocument object within OrderAdmin. Expose the XmlDocument object through a property on OrderAdmin. Answer: C Explanation: A Hashtable can safely support

30、 one writer and multiple readers concurrently. This is the most efficient solution A - The Power of Knowing Incorrect Answers 070-320 A: A Shared Property Manager would be a possible solution, however it is not required and is not the most efficient solution. Note: In COM+,

31、shared transient state for objects is managed by using the Shared Property Manager (SPM). The SPM is a resource dispenser that you can use to share state among multiple objects within a server process. B: SQL Server could provide a solution. However, it would not be the most efficient solution.

32、D: A hast table would be more efficient. Reference: .NET Framework Class Library, Hashtable.IsSynchronized Property Platform SDK: COM+ (Component Services), The Shared Property Manager SUBSECTION 2: Create interfaces that are visible to COM. (7 questions) QUESTION 7: You are using Visual S

33、tudio .NET to develop an application to replace a COM-based application. A former colleague began writing a .NET class for the new application. This class will be used by client applications as a COM object. You are assigned to finish writing the class. The class included the following code segme

34、nt: [Com Visible(false)] public class CkClass { public CkClass() { // Implementation code goes here. } [ComVisible(true)] public int CkMethod(string param) { return 0; } [ComVisible(true)] protected bool CkOtherMethod(){ return true; } [ComVisible(true)] public int CkProperty { get

35、{ return 0; } } // Other implementation code goes here. } When this code runs, it will expose one or more methods to the client application through COM. Which member or members will be exposed? (Choose all that apply) A. CkMethod B. CkOtherMethod C. CkProperty D. CkClass constructor

36、 A - The Power of Knowing Answer: A, C QUESTION 8: 070-320 You are using a Visual Studio .NET to develop an application that uses a non-COM DLL named Certkiller Functions.dll. This DLL is written in unmanaged code. The DLL contains a function that parses a string into an

37、array of string words and an array of numbers. A call to the function includes the following pseudocode: input = "A string with 6 words and 2 numbers" words = null numbers = null Parse(input, words, numbers) After execution, words contains all string words found in input and numbers contains a

38、ll integers found in input. You need to enable your application to call this function. Which code segment should you use? A. [DllImport(" Certkiller Functions.dll")] public static extern void Parse(string input, string[] words, int[] numbers; B. [DllImport(" Certkiller Functions.dll")] pu

39、blic static extern void Parse(string input, ref string[] words, ref int[] numbers); C. [DllImport(" Certkiller Functions.dll")] public static extern void Parse(String inout, params string[] words, params int[] numbers); D. [DllImport(" Certkiller Functions.dll")] public extern void Parse(st

40、ring input, [out] string[] words, [out] int[] numbers; Answer: B QUESTION 9: You create a services component named OrderStatus that is in an assembly named Certkiller Orders. OrderStatus is in its own COM+ application named Certkiller App. OrderStatus is used by multiple client applicati

41、ons to look up the status of orders. Because you anticipate that client applications will frequently access OrderStatus, you need to ensure that the method calls are processed as quickly as possible. What should you do? A. Configure OrderStatus to require a transaction. B. Configure Certkil

42、ler App to be a library application. C. Add the AutoComplete attribute to all methods in OrderStatus. D. Configure Certkiller Orders to be a shared assembly, and install it in the global assembly cache. A - The Power of Knowing Answer: B QUESTION 10: 070-320 You ar

43、e developing a Windows-based application that requires the use of a calculation function named CalculateValue. This function includes the following signature: int CalculateValue(int); CalculateValue is located in an unmanaged DLL named Certkiller Functions.dll, and is not part of a COM interfac

44、e. You need to be able to use CalculateValue in your application. Your project directory contains a copy of Certkiller Functions.dll. While you are working in Debug mode, you attempt to run your application. However, a System.DllNotFoundException is thrown. You verify that you are using the corre

45、ct function named. You also verify that the code in the DLL exposes CalculateValue. You have not modified the project assembly, and you have not modified machine-level security. You need to test your application immediately. What should you do? A. Move Certkiller Functions.dll to your projec

46、t's bin directory. B. Move Certkiller Functions.dll to your project's Debug directory. C. Immediately before the declaration of CalculateValue, add the following code segment: [SuppressUnmanagedCodeSecurityAttribute()] D. Immediately before the call to CalculateValue, add the following code segm

47、ent: SecurityPermission perm = new SecurityPermission( SecurityPermissionFlag.UnmanagedCode); perm.Assert(); Answer: B QUESTION 11: You are using Visual Studio .NET to develop an application named Certkiller App. You have a common business logic component that was created in COM that yo

48、u want to use until you can replace it with Visual Studio .NET code. You create the Visual Studio .NET solution for the new application. You want to use the COM component in your Visual Studio .NET solution. What should you do? A. Register the COM component by using Regsvr32.exe. B. Run the

49、 Type Library Exporter (Tlbexp.exe) and pass the COM component as the filename parameter. C. Use Visual Studio .NET to add a reference to the COM component. D. Run the Assembly Registration tool (Regasm.exe) and pass the COM component as the filename parameter. Answer: C A - The Power

50、of Knowing 070-320 Explanation: We simply need to add a reference to the COM component. Incorrect Answers A: Regsrv32 is not required in Visual Studio .NET. Regsrv32 was used for Visual Basic 6.0, and for Visual C++ 6.0 components. B: Tlbexp.exe generates a type library from a comm

51、on language runtime assembly. Tlbexp.exe generates a type library but does not register it. D: We only use Regasm.exe when we need to access .NET Framework classes in COM Clients. However, in this scenario we want to access the COM Component into our Visual Studio .NET solution. Note: To regis

52、ter or deregister a .NET class with COM, you must run a command-line tool called the Assembly Registration Tool (Regasm.exe). Regasm.exe adds information about the class to the system registry so COM clients can use the .NET class transparently. Reference: .NET Framework Developer's Guide, Regis

53、tering Assemblies with COM .NET Framework Tools, .NET Framework Tools QUESTION 12: You are using Visual Studio .NET to develop a new application to replace an older COM-based application. The new application will use some of the old COM components until they can be replaced by Visual Studio

54、 .NET code. Your application uses a COM DLL named Certkiller COM.dll. The Visual Studio .NET assembly for Certkiller COM.dll must be named OurDotNetCOM. You must use the name "ProjectX" for the namespace of the COM components. You must ensure that your application uses these naming guidelines.

55、What should you do? A. Reference Certkiller COM.dllfrom Visual Studio .NET. Change the assembly name in Solution Explorer. Change the namespace name by editing the assembly. B. Reference Certkiller COM.dllfrom Visual .NET. Change the assembly name in Solution Explorer. Change the namespace

56、name by using the Namespace property of a CodeNamespaceImport object. C. Run the Type Library Importer (Tlbimp.exe) with the /namespace and /out options to create the assembly. D. Run the Type Library Importer (Tlbimp.exe) with the /out option to create the assembly. Change the namespace by usin

57、g the Namespace property of a CodeNamespaceImport object. Answer: C Explanation: The Type Library Importer converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly. We should use the /namespace option to specify the names

58、pace in which to produce the assembly. We must use the /out option to specify output file, assembly, and namespace in which to write the metadata definitions. Reference: .NET Framework Tools, Type Library Importer (Tlbimp.exe) A - The Power of Knowing Incorrect Answers A: Not a pra

59、ctical solution. B: An incomplete solution. 070-320 D: We should use the /namespace option to specify the namespace in which to produce the assembly. QUESTION 13: You are using Visual Studio .NET to develop an application to replace a COM-based application. You are assigned to write a

60、.NET class that will be used by client applications as a COM object. Your class code is being moved and modified while development continues on the new application. You want to minimize any possible disruption to the COM interface as a result of code changes. Which code segment should you use?

61、 A. [ClassInterface()] public Class CKClassToExpose { public int Calc() { // Implementation code goes here. } } B. [Guid("9ED54F84-A89D-4fcd-A854-44251E925F09")] public interface ICKClassToExpose { public int Calc(); } [ClassInterface[ClassInterfaceType.None)] public int Calc() { // Impl

62、ementation code goes here. } } C. [Guid("9ED54F84-A89D-4fcd-A854-44251E925F09")] [ComVisible(true)] public class CKClassToExpose { public int Calc() { // Implementation code goes here. } } D. [ClassInterface(ClassInterfaceType.AutoDispatch)] public class CKClassToExpose { public int Calc

63、() { // Implementation code goes here. } } Answer: D Explanation: The ClassInterfaceType.AutoDispatch indicates that the class only supports late binding for COM clients. A dispinterface for the class is automatically exposed to COM clients on request. The A - The Power of Knowing

64、 070-320 dispinterface does not exhibit versioning problems because of the late bindings. Incorrect Answers A: ClassInterface() is not correct usage. B: The ClassInterfaceType.None indicates that no class interface is generated for the class. If no interfaces are implemented explicitly,

65、the class will only provide late bound access through IDispatch. Users are expected to expose functionality through interfaces that are explicitly implemented by the class. C: ComVisible does not achieve much. Public classes are visible by default. Reference: .NET Framework Class Library, ClassI

66、nterfaceType Enumeration QUESTION 14: You are creating a Visual Studio .NET assembly, which will run as a shared assembly with other applications. The assembly will be installed in the global assembly cache. You will distribute the assembly to many customers outside Certkiller . You must ensure that each customer receives your assembly without alteration, in a

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔

相關(guān)搜索

關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!