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

问题:

[单选] You work as an application developer at Certkiller .com. You are currently in the process of creating a class that stores data about Certkiller .com’s customers. Certkiller .com customers are assigned unique identifiers and various characteristics that may include aliases, shipping instructions, and sales comments. These characteristics can change in both size and data type. You start by defining the Customer class as shown below: public class Customer { private int custID; private ArrayList attributes; public int CustomerID { get {return custID;} } public Customer (int CustomerID) { this.custID = CustomerID; this.attributes = new ArrayList (); } public void AddAttribute (object att) {  attributes.Add (att); } } You have to create the FindAttribute method for locating attributes in Customer objects no matter what the data type is.You need to ensure that the FindAttributemethod returns the attribute if found,and you also need to ensure type-safety when returning the attribute.What should you do?()

A .  Use the following code to declare the FindAttribute method: public T FindAttribute (T att) {//Find attribute and return the value }
B .  Use the following code to declare the FindAttribute method: public object FindAttribute (object att) {//Find attribute and return the value }
C .  Use the following code to declare the FindAttribute method: public T FindAttribute  (T att) {//Find attribute and return the value }
D .  Use the following code to declare the FindAttribute method: public string FindAttribute (string att) {//Find attribute and return the value }

“疏影横斜水清浅,暗香浮动月黄昏”是宋代隐士诗人()的咏梅绝唱《山园小梅》中的名句。 编制公路工程初步设计概算的预备费率为()。 3%。 5%。 8%。 12%。 Your company has four DNS servers that run Windows Server 2008. Each server has a static IP address.You need to prevent DHCP from assigning the addresses of the DNS servers to DHCP clients.What should you do?() Create a new scope for the DNS servers.。 Create a reservation for the DHCP server.。 Configure the 005 Name Servers scope option.。 Configure an exclusion that contains the IP addresses of the four DNS servers.。 生物进化主要是基于()的相互作用。 生物代际之间。 生物种群之间。 生物与其环境。 生物内部个体。 婚姻的成立,亦称结婚 You work as an application developer at Certkiller .com. You are currently in the process of creating a class that stores data about Certkiller .com’s customers. Certkiller .com customers are assigned unique identifiers and various characteristics that may include aliases, shipping instructions, and sales comments. These characteristics can change in both size and data type. You start by defining the Customer class as shown below: public class Customer { private int custID; private ArrayList attributes; public int CustomerID { get {return custID;} } public Customer (int CustomerID) { this.custID = CustomerID; this.attributes = new ArrayList (); } public void AddAttribute (object att) {  attributes.Add (att); } } You have to create the FindAttribute method for locating attributes in Customer objects no matter what the data type is.You need to ensure that the FindAttributemethod returns the attribute if found,and you also need to ensure type-safety when returning the attribute.What should you do?()
参考答案:

  参考解析

本题暂无解析

在线 客服