单项选择题您正在创建一个可列出远程计算机上的进程的应用程序。该应用程序需要一个执行以下任务的方法:以名为strComputer 的字符串参数的形式接受远程计算机名称。返回一个包含该计算机上正在运行的所有进程的名称的ArrayList 对象。您需要编写一个代码段,该代码段检索远程计算机上正在运行的每个进程的名称,并将名称添加到ArrayList对象。您应该使用哪个代码段?()

A.
B.
C.
D.


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题您正在开发一个协助用户进行电子调查的应用程序。调查由25个对错判断题组成。您需要执行下列任务:将每个答案预置为是()。最大程度地减少每次调查使用的内存量。您应该选择哪个存储选项?

A.BitVector32 answers = new BitVector32(1);
B.BitVector32 answers = new BitVector32(-1);
C.BitArray answers = new BitArray (1);
D.BitArray answers = new BitArray(-1);

3.单项选择题您需要创建一个方法,清除命名为q的Queue,您应该使用哪一个代码片段?()

A.foreach (object e in q) { q.Dequeue();}
B.foreach (object e in q) { Enqueue(null);}
C.q.Clear();
D.q.Dequeue();

7.多项选择题

选择正确的选项()

A.
B.
C.
D.
E.

8.单项选择题您应该选择一个类,是从小的和大的集合中恢复关键项的最好的。您应该选择哪一个类?()

A.OrderedDictionary class 表示根据键/索引排序的键/值对的集合
B.HybridDictionary class
C.ListDictionary class 小集合
D.Hashtable class 存储大集合时效率最高

9.多项选择题您正在创建一个使用非托管资源的类,这个类保持在其它对象上的有管理代码您应该确保这个类的使用者能在这个类不再使用时释放资源您应该执行哪三个动作?()

A.定义类使得该类继承于WeakReference类。
B.定义类使得该类实现IDisposable接口。
C.创建类析构函数,该函数在其他对象上调用方法来释放托管资源。
D.创建一个释放非托管资源的类析构函数。
E.创建一个Dispose方法,该方法调用System GC Collect来强制进行垃圾回收。
F.创建一个Dispose方法,该方法释放非托管资源,并在其他对象上调用方法来释放托管资源。

10.单项选择题您使用反射获取有关名为MyMethod的方法的信息。您需要确定派生类是否可以访问MyMethod。您应该怎么做?()

A.调用MethodInfo类的IsAssembly属性。
B.调用MethodInfo类的IsVirtual属性。
C.调用MethodInfo类的IsStatic属性。
D.调用MethodInfo类的IsFamily属性。

最新试题

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。您正在开发.NET 框架 2.0 Windows 服务指定将用于不断的 TestScannerSync 的应用程序扫描仪连接到计算机的显示器。TestScannerSync 类继承及其功能ServiceBase 类。当您连接扫描仪服务同步其数据与数据SQL Server 数据库中的数据。您决定重写在 TestScannerSync 如上方法关闭数据库连接的类和写入代码。您需要确定在代码中的位置,您可以打开到数据库的连接。你应该做什么?()

题型:单项选择题

You are writing an application that uses isolated storage to store user preferences.The application uses multiple assemblies.Multiple users will use this application on the same computer.You need to create a directory named Preferences in the isolated storage area that is scoped to the current Microsoft Windows identity and assembly.Which code segment should you use?()

题型:单项选择题

Certkiller .com has a file server named Certkiller -SR07 that stores old inventory files. Certkiller .com has given you the task of creating an application to archive these old inventory files.The inventory files have to be compressed prior to being uploaded to Certkiller .com's Web server.You are currently writing a method that will receive a byte array and compress it into a new file.You need to ensure that a data corruption check takes place during the decompression process.What should you do?()

题型:单项选择题

You have recently completed the creation of a new application.Certkiller .com requires you to ensure that this new application creates a file that contains an array of bytes.What should you do?()

题型:单项选择题

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

题型:单项选择题

You are writing a method that accepts a string parameter named message.Your method must break the message parameter into individual lines of text and pass each line to a second method named Process.Which code segment should you use?()

题型:单项选择题

You need to serialize an object of type List<int> in a binary format.The object is named data.Which code segment should you use?()

题型:单项选择题

You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform.You are developing a Windows Service application which contains three different Windows services.You are required to only set one Windows service to start automatically when the system is restarted.What should you do?()

题型:单项选择题

You work as an application developer at Certkiller .com. You are currently in the process of creating a new application for Certkiller .com. You are required to read compressed data files that has been sent by Certkiller .com's sales offices.These data files are less than 4 GB in size, but was compressed without cyclic redundancy. You want to write a method that receives the compressed files and return the uncompressed data as a byte array.What should you do?()

题型:单项选择题