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

问题:

[单选]

您最近创建的 Windows 服务应用程序,需要定义一个 Windows 服务类。
你应该做什么?()

A .
B .
C .
D .

You are the network administrator for your company. The network consists of a single Active Directory domain. All five domain controllers run Windows Server 2003, and all client computers run Windows XP Professional. The domain's audit policy ensures that all account logon events are audited. A temporary employee named Peter uses a client computer named Client1. When Peter's temporary assignment concludes, his employment is terminated. Now you need to learn the times and dates when Peter logged on to the domain. You need to accomplish this goal by reviewing the minimum amount of information. What should you do?() Log on to Client1 as a local Administrator. Use Event Viewer to view the local security log. Use the Find option to list only the events for Peter's user account.。 Log on to Client1 as a local Administrator. Use Event Viewer to view the local security log. Use the Find option to list only the events for the Client1 computer account. Use Event Viewer to view the security log on each domain controller. Use the Find option to list only the events for Peter's user account. Use Event Viewer to view the security log on each domain controller.。 Set a filter to list only the events for Peter's user account. Use Event Viewer to view the security log on each domain controller.。 Set a filter to list only the events for the Client1 computer account.。 企业筹集的资金按其来源渠道分为权益资金和负债资金、不管是权益资金还是负债资金,在分配报酬时,都是通过利润分配的形式进行的,属于税后分配。 公司A使用SQL SERVER 2005数据库。你正在实现一系列用在ad hoc查询(即席查询)的视图。这些视图用来增强公司A数据访问的安全性。可是,其中的某些视图查询数据缓慢,为此,在你进行公司安全策略维护的时候,想给这些视图创建一些索引,以提高性能。其中,有一个视图并不允许你创建索引。已知,这个视图使用了GETDATE()函数返回当前日期作为视图的一列。请问,为了在这个视图上能够创建索引,你应该如何做?(选择两个答案)() 移除视图中所有对确定性函数的调用。 移除视图中所有对非确定性函数的调用。 对视图中使用的所有函数进行架构绑定。 在创建视图的时候指定WITH CHECK OPTION子句。 沈某因公安局违法使用警具伤害致死,家中有父(70岁)、儿子(5岁)、妻子(32岁),公安局应赔偿() 死亡赔偿金。 父生活费。 儿子生活费。 妻子生活费。 丧葬费。 目前最有希望大幅提高网络性能的环节是() 网络的接入部分。 服务器部分。 数据存储部分。 安全部分。

您最近创建的 Windows 服务应用程序,需要定义一个 Windows 服务类。
你应该做什么?()

参考答案:

  参考解析

ServiceBase 类包含事件方法,如 OnStart,如上,并运行控制 Windows 服务类。OnStart 方法代码执行 Windows 服务时手动启动,或如果将启动类型设置为自动时引导系统。如上方法代码执行 Windows 服务时手动停止或关闭系统。Main 方法是执行的第一个点,当运行任何 windows 应用程序 (.exe)。对于在应用程序的进程中运行的 Windows 服务,您必须调用 Run 方法 ServiceBase 类。Run 方法重载以接受单个 ServiceBase 对象或 ServiceBase 对象的数组。

相关题目:

在线 客服