多项选择题
您正在将集体存储用户消息的应用程序和进程的消息序列中。处理消息的顺序将取决于它接收的顺序。要添加到集合的邮件,用户将指定应存放在一个名为 txtMsg 的 TextBox 控件的消息然后单击一个名为 btnAdd 的按钮控件。您需要确保使用适当的代码来创建集合。您应该使用什么?()
A.
B.
C.
D.
点击查看答案&解析
相关考题
-
单项选择题
You need to create a method to clear a Queue named q.Which code segment should you use?()
A.A
B.B
C.C
D.D -
单项选择题
您正在开发的应用程序使用的队列名为MyQueue的类对象。此队列的类对象将用于存储在应用程序运行时,用户发送的消息。您正在开发的应用程序的管理员和用户界面创建消息报告提供了一个接口。要确保管理员选择重置选项时删除MyQueue对象中存储的所有用户消息。你应该做什么?()
A.使用MyQueue对象Enqueue方法。
B.使用MyQueue对象的Clear方法。
C.使用MyQueue对象的Dequeue方法。
D.使用TrimToSize方法的MyQueue对象 -
单项选择题
Youarecreatinganundobufferthatstoresdatamodifications.Youneedtoensurethattheundofunctionalityundoesthemostrecentdatamodificationsfirst.Youalsoneedtoensurethattheundobufferpermitsthestorageofstringsonly.Whichcodesegmentshouldyouuse?()
A.Stack<string> undoBuffer=new Stack<string>();
B.Stack undoBuffer=new Stack();
C.Queue<string> undoBuffer=new Queue <string>();
D.Queue undoBuffer=new Queue();
