可学答题网 > 问答 > MCPD(70-562)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are employed as&en


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?()

  • AA
  • BB
  • CC
  • DD
参考答案
参考解析:
分类:MCPD(70-562)题库
相关推荐

1、You are employed as&en

You are employed as the exchange administrator at TestKing.com. The TestKing.com network containsan ...

2、You are employed as&en

You are employed as the exchange administrator at Company.com.the Company.com network contains an ex...

3、You are employed as&en

You are employed as a system administrator at Certkiller.com. You are in the process of cr...

4、You are employed as&en

You are employed as the enterprise exchange administrator at TestKing.com. TestKing.com makes use of...

5、You are employed as&en

You are employed as a network administrator at Certkiller.com. You receive an instruction frommanage...

6、You are employed as&en

You are employed as the Exchange administrator at Company.com.The Company.com network contains an Ex...