多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You work as a Web Developer at Certkiller.com. You make use of Microsoft ASP.NET 3.5 in orderto create a Web Site.  In a separate code file you create the following class:  public static class _Colors {  public static Color NormalActivityColor = Color.Green;  public static Color WarningActivityColor = Color.Yellow;  public static Color ErrorActivityColor = Color.Red;    public static Color GetRandomColor()  {  Random random = new Random((int)DateTime.Now.Ticks);  int randomArgbValue = random.Next();  Color color = Color.FromArgb(255, Color.FromArgb(randomArgbValue));  return color;  }  }  You need to ensure that the class is consumed by the Web Site. You have to configure the WebSite project.  What should you do?()

  • A、You should add the file to the App_Code folder of the project.
  • B、You should add a Register directive that will reference the file to every page that makes use ofthe class.
  • C、This can be accomplished by referencing the file in the assemblies segment of the Web.configfile.
  • D、This can be accomplished by referencing the file in the httpHandlers segment of the Web.configfile.
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题