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

问题:

[单选]

You are employed as a Web Application Developer at Certkiller.com. You make use of Microsoft.NET Framework v3.5 to create an ASP.NET application. 
You create a class in the application that contains the code below. (The line numbers is includedfor reference purposes)
01 public object GetCachedProducts(sqlConnection conn) {
02
03  if (Cache["products"] == null) {
04  SqlCommand cmd = new SqlCommand("SELECT * FROM Products", conn);
05  conn.Open();
06  Cache.Insert("products", GetData(cmd));
07  conn.Close();
08  }
09  return Cache["products"];
10 }
11
12 public object GetData(SqlCommand prodCmd) {
13
14 } 
You notice that the GetCachedProducts method is called to provide this list from the Cache objectevery time a Web form has to access a list of products. To ensure productivity management wantsyou to make sure that there is always a list of products available in the Cache object. You thusneed to determine the appropriate code that should be added in line 13. 
What should you identify?()

A . A
B . B
C . C
D . D

Your company runs Remote Desktop Services. All client computers run Windows Vista SP2. You have a Remote Desktop Session Host (RD Session Host) server. You need to deploy a RemoteApp application to client computers and ensure that the application appears on the Start menu. Which file type should you distribute to the client computers?() Windows Installer (.msi)。 Client Configuration File (.wcx)。 Shortcut file (.LNK)。 RemoteApp Programs list and settings (.tspub)。 狱内暴力案件包括() 狱内诈骗。 狱内杀人。 狱内盗窃。 狱内伤害。 狱内团伙。 党章规定,党的最高领导机关是()。 党的全国代表大会和它所产生的中央委员会。 党的全国代表大会。 党的中央委员会。 党的全国代表大会和地方委员会。 秋叶呈红色的绿化植物有()。 五角枫。 黄栌。 银杏。 鸡爪槭。 女贞。 加快‘一带一路’建设,有利于促进沿线各国经济繁荣与区域经济合作,加强不同文明交流互鉴,促进世界和平发展,是一项造福世界各国人民的伟大事业。

You are employed as a Web Application Developer at Certkiller.com. You make use of Microsoft.NET Framework v3.5 to create an ASP.NET application. 
You create a class in the application that contains the code below. (The line numbers is includedfor reference purposes)
01 public object GetCachedProducts(sqlConnection conn) {
02
03  if (Cache["products"] == null) {
04  SqlCommand cmd = new SqlCommand("SELECT * FROM Products", conn);
05  conn.Open();
06  Cache.Insert("products", GetData(cmd));
07  conn.Close();
08  }
09  return Cache["products"];
10 }
11
12 public object GetData(SqlCommand prodCmd) {
13
14 } 
You notice that the GetCachedProducts method is called to provide this list from the Cache objectevery time a Web form has to access a list of products. To ensure productivity management wantsyou to make sure that there is always a list of products available in the Cache object. You thusneed to determine the appropriate code that should be added in line 13. 
What should you identify?()

参考答案:

  参考解析

本题暂无解析

在线 客服