单项选择题

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?()

A.
B.
C.
D.


您可能感兴趣的试卷

你可能感兴趣的试题

7.单项选择题

您最近创建了一个名为车辆的可序列化的类。
类如下所示:
[Serializable]
public class Vehicle {
public string VIN;
public string Make;
private string Model;
private int Year;
private string Owner;
}
Certkiller.com 不想要序列化一个车辆对象,出于安全原因时永久保存的所有者字段。
您需要确保实现这一目标。
你应该做什么?()

A.适用于所有者字段的 OptionalField 属性。
B.应用,所以所有者字段的属性。
C.已实现 IFormatter 接口的自定义序列化的车辆类别。
D.做什么,因为在使用二进制序列化时,私营领域是永远不会保留。

最新试题

您最近创建了一个名为车辆的可序列化的类。类如下所示:[Serializable]public class Vehicle {public string VIN;public string Make;private string Model;private int Year;private string Owner;}Certkiller.com 不想要序列化一个车辆对象,出于安全原因时永久保存的所有者字段。您需要确保实现这一目标。你应该做什么?()

题型:单项选择题

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?()

题型:单项选择题

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");FileStream stream = new FileStream ("Email.dat", FileMode.Create);BinaryFormatter formatter = new BinaryFormatter ();formatter.Serialize (stream, emailAddresses);You need to ensure that you are able to load the emailAddresses object from the Email.dat file into your application.What should you do?()

题型:单项选择题

You define the following regular expression of currency values:regex tx = new regex("^-?\d+(\.\d{2})?$")You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use.What should you do?()

题型:单项选择题

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. You need to change the security context in which the service runs.The service will be run in context of a non-privileged user on the local computer and present anonymous credentials to any remote server.You are required to set the Account property of the ServiceProcessInstaller class to specify the service account.What should you do?()

题型:单项选择题

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?()

题型:单项选择题

Certkiller .com has asked you to create a file management application to monitor the hosts file.Certkiller .com has instructed you to change the hosts file if it has been changed.You, therefore, need to display the size and whether the hosts file is set to read-only.What should you do?()

题型:单项选择题

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?()

题型:单项选择题

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?()

题型:单项选择题

为应用程序开发人员上班 Certkiller。 com。Certkiller.com 作为其应用程序使用 Visual Studio.NET 2005开发平台。您正在开发一个 Windows 窗体应用程序。你被要求要创建一个新的类引发大量的事件和保持尽可能低的内存使用的类。必须完成此任务,使用代码的最小数量可能。你应该做什么?()

题型:单项选择题