CMS专题

多选题You create a service application that monitors free space on a hard disk drive.  You must ensure that the service application runs in the background and monitors the free space every minute. What should you do?()AAdd code to the default constructor of 

题目
多选题
You create a service application that monitors free space on a hard disk drive.  You must ensure that the service application runs in the background and monitors the free space every minute. What should you do?()
A

Add code to the default constructor of the Service class to monitor the free space on the hard disk drive.

B

Add code to the OnStart method of the Service class to monitor the free space on the hard disk drive.

C

Add an instance of the System.Windows.Forms.Timer class to the Service class and configure it to fire every minute.

D

Add an instance of the System.Timers.Timer class to the Service class and configure it to fire every minute.

E

Add code to the OnStart method of the Service class to start the timer.

F

Add code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive.

G

Add code to the Tick event handler of the timer to monitor the free space on the hard disk drive.

参考答案和解析
正确答案: A,G
解析: 暂无解析
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Questions 176~177 refer to the following advertisement.
CARE YOUR OWN SPACE
Do you dream of having a space away from the demands of everyday life-a space where you can create, think, and relax?
Marvel Space Planners, a group of architects, designers, and makers of built-in furniture, can turn an unused room or an awkward space into a practical room of your own. Our free, full-color
brochure presents a sampling of options for individually designed spaces.
If you would like to create a customized space, why not call us today at 800-555-7552 to request a copy of the brochure or to schedule a free initial consultation with our design team.

What is being advertised?

A. Rooms for rent
B. A design service
C. A job placement service
D. Vacation package

答案:B
解析:

第2题:

You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application that monitors and controls the activities of a Windows service.You need to use the appropriate class to meet Certkiller .com’s requirements. What should you do?()

  • A、 Use the ServiceBase class.
  • B、 Use the ServiceInstaller class.
  • C、 Use the ServiceManager class.
  • D、 Use the ServiceController class.

正确答案:D

第3题:

You create a service and deploy it on a network in a building named Building1. You will deploy the service to Building2.The service in Building1 is configured using the following discovery scopes.The service in Building2 will be configured using the following discovery scopes.You need to ensure that the client application can discover the service in Building1 or the service in Building2.Which scopes should you add to the client configuration file? ()

A.

B.

C.

D.


参考答案:B

第4题:

You have two servers that run Windows Server 2008 named Server1 and Server2. You install Windows SharePoint Services (WSS) 3.0 on Server1. You install the SMTP feature on Server2. You configure the outgoing e-mail settings on Server1 to use the SMTP service on Server2. You need to ensure that e-mail messages from Server1 are forwarded to users. What should you do?()

  • A、On Server2, create a new application pool, and then associate the application pool with a new Web site.
  • B、On Server2, configure the SMTP service to accept anonymous connections and to relay e-mail messages.
  • C、On Server1, create a new application pool. On an internal DNS server, create a new MX record for Server1.
  • D、On Server1, create a new application pool. On an internal DNS server, create a new MX record for Server2.

正确答案:B

第5题:

You want to be notified when the space usage of an existing critical tablespace has reached 75% of the allocated space. Which option would you use to achieve this?()

  • A、run a procedure to check the tablespace space usage
  • B、define the warning threshold for the tablespace at 75% in Database Control
  • C、create a trigger to be executed when tablespace space usage reaches 75%
  • D、submit a job by using DBMS_JOB package to check the free space in the tablespace at regular intervals
  • E、define the warning threshold to be 75% for the tablespace by ALTER TABLESPACE .. ADD THRESHOLD command

正确答案:B

第6题:

Questions 176~177 refer to the following advertisement.
CARE YOUR OWN SPACE
Do you dream of having a space away from the demands of everyday life-a space where you can create, think, and relax?
Marvel Space Planners, a group of architects, designers, and makers of built-in furniture, can turn an unused room or an awkward space into a practical room of your own. Our free, full-color
brochure presents a sampling of options for individually designed spaces.
If you would like to create a customized space, why not call us today at 800-555-7552 to request a copy of the brochure or to schedule a free initial consultation with our design team.

What is offered for free?

A. Exercise equipment
B. Some paint samples
C. A consultation
D. An architectural plan

答案:C
解析:

第7题:

You are creating a Web-based application to manage data aggregation for reports. The application connects to a SQL Server 2005 database named DataManager. One page in the application has controls that execute stored procedures in a database named ReportingDatabase. There is an existing Service Broker connection between the DataManager database and ReportingDatabase.You want to add two new message types to the existing service. In each database, you create message types named ProcessReport and SendResult. You need to add the two new message types to the existing service. What should you do first?()

  • A、Create a queue on each database with the ACTIVATION argument set to DataManager dbo processReport.
  • B、Create a conversation between the databases by using the following Statement BEGIN DIALOG FROM SERVICE ’ProcessReport’ TO SERVICE ’SendResult’
  • C、Create a contract between the services by using the following statement.CREATE CONTRACT processData (ProcessReport SENT BY INITIATOR,SendResult SENT BY TARGET)
  • D、Create services for each database by using the following statement.CREATE SERVICE DataManager on QUEUE ProcessReport

正确答案:C

第8题:

Windows Communication Foundation (WCF) service will be hosted in Microsoft Internet Information Services (IIS).You create a new application in IIS to host this service and copy the service DLL to the bin directory of the application.You need to complete the deployment of this service to IIS. What should you do next?()

A. Create an asmx file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.

B. Create an .asmx file and add a @Register directive to this file. Copy the file to the bin directoyy of the application.

C. Create a svc file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.

D. Create a .svc file and add a @Register directive to this file. Copy the file to the bin directory of the application.


参考答案:C

第9题:

Your company has a domain controller named Server1 that runs Windows Server 2008 and the DNS server role. A server named Server2 runs a custom application. You need to configure DNS to include the following parameters for the custom application: Service Priority Weight Protocol Port Number Host offering this service Which record should you create?()

  • A、 Host Info (HINFO)
  • B、 Service Locator (SRV)
  • C、 Canonical Name (CNAME)
  • D、 Well-Known Service (WKS)

正确答案:B

第10题:

You have a server that runs Windows Server 2003 Service Pack 2 (SP2). A server application creates report files. The application saves the report files in a folder named Report. A service account is listed as the owner of all report files. You need to assign ownership of the report files to a user in a department named Audit. You must achieve this goal by using the minimum amount of administrative effort. What should you do? ()

  • A、Rewrite the application.
  • B、Create a scheduled task to run Attrib.exe.
  • C、Create a scheduled task to run Icacls.exe.
  • D、Use the Advanced Security settings to change the owner of each file.

正确答案:C

更多相关问题