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

问题:

[单选]

创建 Windows 服务应用程序的目的是监测活动的数量
Certkiller.com 的服务器上运行的服务请求。
要配置该 Windows 服务应用程序,提交一份报告,每隔十分钟。
你开始通过将报告逻辑放置在该 Windows 服务的 GenerateReport 方法。
您要创建一个计时器对象调用此方法每隔十分钟。
你应该做什么?()

A . TimertmrReport=newTimer(newTimerCallback(GenerateReport),null,600000,0);
B . TimertmrReport=newTimer(newTimerCallback(GenerateReport),null,10,0);
C . TimertmrReport=newTimer(newTimerCallback(GenerateReport),null,0,600000);
D . TimertmrReport=newTimer(newTimerCallback(GenerateReport),null,0,10);

您将 Windows 7 Enterprise 映像部署到网络上的一台计算机。您需要显示这台计算机的详细激活和许可证状态。您应该运行什么?() Msconfig.exe。 Slui.exe。 Slmgr.vbs 并指定 dli 参数。 Winrm.vbs 并指定 id 参数。 冗余设计需考虑哪些问题? 一般可以使用()命令来标识Transact-SQL批处理的结束。 目前国内地铁项目的PPP运作模式主要有() 贷款贴息模式。 前补贴模式。 经营权转让模式。 后补贴模式。 所有权转让模式。 You are one of the network administrators for your company. All network servers run Windows Server 2003. Your company operates a total of four offices. The office where you work has 15 servers. You are responsible for supporting and maintaining all of these servers. You need to design a monitoring plan that will achieve the following goals: Track all performance changes on the servers. Record performance data to anticipate the need for future upgrades. What should you do? () On each server in your office, use Performance Logs and Alers to create a baseline log. Configure the log to collect data every five minutes for one day. Use the same counters for each server to create a log file. Schedule the log to run weekly.。 From a monitoring computer, use Performance Logs and Alerts to create a baseline log for each server in your office. Configure the log to collect data every five minutes for one day. Use the same counters for each server to create a log file. Schedule the log to run weekly.。 On each server in your office, use Performance Logs and Alerts to create threshold-based alerts. Configure the alerts to send a message to your monitoring computer when they are triggered. Set each alert to start a new scan when the alert finishes.。 From a monitoring computer use Performance Logs and Alerts to create a new counter set in System Monitor. Configure the counters to run continuously.。

创建 Windows 服务应用程序的目的是监测活动的数量
Certkiller.com 的服务器上运行的服务请求。
要配置该 Windows 服务应用程序,提交一份报告,每隔十分钟。
你开始通过将报告逻辑放置在该 Windows 服务的 GenerateReport 方法。
您要创建一个计时器对象调用此方法每隔十分钟。
你应该做什么?()

参考答案:

  参考解析

此代码创建一个名为tmrReport,将调用GnerateReport每隔十分钟的计时器对象。计时器的构造函数的第一个参数是一个指向要调用的方法的TimerCallback委托。第二个参数是将被发送到回调方法的对象。第三和第四个参数为整数,分别以毫秒为单位,指定延迟和时间间隔。以毫秒为单位的时间间隔,因为必须作出下列转换: 10分钟=10*60秒=600*1000毫秒=600000毫秒,因此,延迟设置为0,和间隔设置为60毫秒为单位)。

在线 客服