单项选择题

您正在编写自定义字典。该自定义字典类名为MyDictionary。您需要确保该字典是类型安全的字典。您应该使用哪个代码段?()

A.A
B.B
C.C
D.D


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题What kind of object does the generic Dictionary enumerator return?()

A. Object
B. Generic
C. Key
D. Value

2.单项选择题You work as the application developer at Hi-Tech.com. You create a new custom dictionary named MyDictionary. Choose the code segment which will ensure that MyDictionary is type safe?()

A. Class MyDictionary Implements Dictionary (Of String,String)
B. Class MyDictionary Inherits HashTable
C. Class MyDictionary Implements IDictionary
D. Class MyDictionary     End Class     Dim t as New Dictionary (Of String, String)     Dim dict As MyDIctionary= CType (t,MyDictionary)

9.多项选择题You are developing an application that receives events asynchronously.You create a WqlEventQuery instance to specify the events and event conditions to which the application must respond.You also create a ManagementEventWatcher instance to subscribe to events matching the query.You need to identify the other actions you must perform before the application can receive events asynchronously.Which two actions should you perform?()

A.Start listening for events by calling the Start method of the ManagementEventWatcher.
B.Set up a listener for events by using the EventArrived event of the ManagementEventWatcher.
C.Use the WaitForNextEvent method of the ManagementEventWatcher to wait for the events.
D.Create an event handler class that has a method that receives an ObjectReadyEventArgs parameter.
E.Set up a listener for events by using the Stopped event of the ManagementEventWatcher.

最新试题

You are in the process of creating a new application.This new application has to be able to read all data from a text file.What should you do?()

题型:单项选择题

You need to write a code segment that transfers the first 80 bytes from a stream variable named stream1 into a new byte array named byteArray.You also need to ensure that the code segment assigns the number of bytes that are transferred to an integer variable named bytesTransferred.Which code segment should you use?()

题型:单项选择题

为应用程序开发人员上班 Certkiller。.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。您正在开发。网框架 2.0 Windows 应用程序和要创建的前台线程在应用程序中绘制线条。在线程启动时,您必须提供的数据值,它指定绘制的行数。你应该做什么?()

题型:多项选择题

为应用程序开发人员上班 Certkiller.com。Certkiller.com 作为其应用程序使用 Visual Studio.NET 2005开发平台。您正在开发的应用程序将用来连接和控制上安装的现有服务的行为名为 Certkiller 的网络服务器-SR01。你应该做什么?()

题型:单项选择题

you have recently written the code shown below:Hashtable emailAddresses = new Hashtable ();emailAddresses.Add ("Mia", "mia@ Certkiller .com");emailAddresses.Add ("Andy", "andy@ Certkiller .com");emailAddresses.Add ("Kara", "kara@ Certkiller .com");You need to ensure that these e-mail addresses are stored in the Email.dat file so that you can load them againwhen the user restarts the application.What should you do?()

题型:单项选择题

为应用程序开发人员上班 Certkiller。.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。您正在开发。NET 框架 2.0 Windows 服务应用程序,用于执行需要后台处理的几个短的任务。你不需要有积极管理您的应用程序中的线程,但您是需要确保在执行任务的过程中将执行安全检查。你应该做什么? ()

题型:单项选择题

为应用程序开发人员上班 Certkiller。 com。Certkiller.com 作为其应用程序使用 Visual Studio.NET 2005开发平台。您正在开发。NET Framework 2.0 应用程序将用于地理的映射。每当您加载插件的创建单独的应用程序域。要指定搜索的目录列表私有程序集。您需要将应用程序基目录添加为部件,您的搜索和需要配置应用程序域满足要求 ()

题型:单项选择题

Certkiller.com 已经聘请了小的本地私立学校的发展将在应用程序中,ManageAttendance 名学生档案管理的目的而使用的类库。您应负责此类图书馆发展。Certkiller.com 已指示您学习的结果存储到应用程序中创建的集合。目前仅有七个学生,但此值将增加两倍,在下一年度,学校已通知您。由于对有限的资源,您需要确保您所创建的集合消耗最少的资源。创建集合,您应该使用什么?()

题型:单项选择题

You have recently completely creating a new application for Certkiller .com.This new application has to load an instance of the Inventory class from a large file named Inventory.dat.You need to ensure that the application executes the loading process in as little time as possible.What should you do?()

题型:单项选择题

Certkiller.com has given you the task of serializing an object and writing it to a data file using binary serialization.You need to ensure that you meet these requirements.What should you do?()

题型:单项选择题