当前位置:MCPD(70-536)题库

问题:

[单选] 您最近创建了一个名为ShoppingList 的自定义集合类为当地的超市 。此自定义的类将包含 ShoppinItem 对象具有下面列出的公共属性。* Name* AisleNumber* OnDiscount你要使您的类来循环访问 ShoppingList 集合中,并列出每个产品的Name和AisleNumber,使用 foreach 语句。要实现这一目标的声明相应的代码。您应该使用哪个代码?()

A .
B .
C .
D .

You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?() NetTcpContextBinding。 BasicHttpContextBinding。 NetTcpBinding。 NetMsmqBinding。 社会控制 Which of the following is not an essential prerequisite for AutoQoS to be correctly applied to aninterface? (Choose all that apply.)() The interface must be configured as a Multilink PPP interface。 The correct bandwidth should be configured on the interface。 A QoS policy must not be currently attached to the interface。 CEF must be enabled。 AutoQoS must be enabled globally before it can be enabled on the interface。 An IP address must be configured on the interface if its speed is equal to or less than 768 k。 我国社会主义精神文明建设的根本目标是()。 为社会主义现代化建设提供思想保证。 为社会主义现代化建设提供智力支持。 为社会主义现代化建设提供精神动力。 培育“有理想、有道德、有文化、有纪律”的公民、提高全民族的思想道德素质和科学文化素质。 论汉谟拉比法典特点 您最近创建了一个名为ShoppingList 的自定义集合类为当地的超市 。此自定义的类将包含 ShoppinItem 对象具有下面列出的公共属性。* Name* AisleNumber* OnDiscount你要使您的类来循环访问 ShoppingList 集合中,并列出每个产品的Name和AisleNumber,使用 foreach 语句。要实现这一目标的声明相应的代码。您应该使用哪个代码?()
参考答案:

  参考解析

在现实应用中,对于集合以及枚举这些集合的需求非常普遍,因此在.NET中集合所依赖的接口被设计为公共的。想要实现对象的枚举就必须继承IEnumerable接口。

在线 客服