单项选择题
You are developing an application to assist the user in conducting electronic surveys.The survey consists of 25 true-or-false questions.You need to perform the following tasks: Initialize each answer to true.Minimize the amount of memory used by each survey. Which storage option should you choose?()
A.BitVector32 answers = new BitVector32(1);
B.BitVector32 answers = new BitVector32(-1);
C.BitArray answers = new BitArray (1);
D.BitArray answers = new BitArray(-1);
点击查看答案
相关考题
-
单项选择题
You are writing a custom dictionary.The custom-dictionary class is named MyDictionary.You need to ensure that the dictionary is type safe. Which code segment should you use?()
A.A
B.B
C.C
D.D -
单项选择题
Certkiller.com 希望可以开发一个应用程序存储和检索雇员信息唯一的工作人员的数量。您创建的自定义集合类,该类实现的类型安全的 IDictionary 接口。此集合类被命名为 EmployeeCollection,并使用下面的代码定义。()public class EmployeeCollection : IDictionary {/ / 执行代码}
A.
B.
C.
D. -
单项选择题
您正在开发的应用程序使用的队列名为 MyQueue 的类对象。此队列的类对象将用于存储在应用程序运行时,用户发送的消息。您想在队列开始访问消息,在处理用户的消息,而不删除它。你应该做什么?()
A.使用MyQueue对象Enqueue方法
B.使用MyQueue对象的Contains方法
C.使用MyQueue对象的Dequeue方法
D.使用MyQueue对象的Peek方法。
