微软认证考试

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 t

题目

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.
参考答案和解析
正确答案:D,E,F
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are granted the CREATE VIEW privilege. What does this allow you to do? ()

A. Create a table view.

B. Create a view in any schema.

C. Create a view in your schema.

D. Create a sequence view in any schema.

E. Create a view that is accessible by everyone.

F. Create a view only of it is based on tables that you created.


参考答案:C

第2题:

Examine the SQL statement that creates ORDERS table:CREATE TABLE orders (SER_NO NUMBER UNIQUE, ORDER_ID NUMBER, ORDER_DATE DATE NOT NULL, STATUS VARCHAR2(10) CHECK (status IN (‘CREDIT‘, ‘CASH‘)), PROD_ID NUMBER REFERENCES PRODUCTS(PRODUCT_ID), ORD_TOTAL NUMBER, PRIMARY KEY (order_id, order_date));For which columns would an index be automatically created when you execute the above SQL statement? ()

A. SER_NO

B. ORDER_ID

C. STATUS

D. PROD_ID

E. ORD_TOTAL

F. composite index on ORDER_ID and ORDER_DATE


参考答案:A, F

第3题:

You would like to create a custom performance counter for an application that you created recently.To do this, you decide to create a custom category named ApplicationPerformance and a performance counter named HitNumber.You need to ensure that this counter is shared across numerous applications.What should you do?()

A.

B.

C.

D.


参考答案:D

第4题:

You work as a database administrator for Certkiller .com. You added atablespaceto your database. Because of the changes to the physical structure of your database, you performed a backup of the control file to trace. After this, you lost only the control files and the instance aborted due to a hardware failure.  How would you proceed to recover the database?()

  • A、Start the instance and open the database, instance recovery automatically recovers control files 
  • B、Create a file based on the contents of the trace file and save it to the control file locations and start the database 
  • C、Re-create the database (The recovery of the control file is not possible because you have lost all the control files.) 
  • D、Start the instance, in the NOMOUNTstate,re-create the control file using the CREATE CONTROLFILE command stored in the trace file. 
  • E、Start the instance and MOUNT the database, then re-create the control file using the CREATE CONTROLFILE command stored in the trace file.

正确答案:D

第5题:

You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to create a Windows Installer package for a Windows Forms application. The package will be deployed on Windows Vista computers.You need to ensure that during deployment the installation does not elevate privileges of the user installing the application.What should you do?()

  • A、Create a custom action and set the NoImpersonate property to true
  • B、Create a custom action and set the NoImpersonate property to false
  • C、Create a manifest and set the RequestedExecutionLevel level attribute to AsInvoker
  • D、Create a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator

正确答案:C

第6题:

Examine the SQL statements that creates ORDERS table: CREATE TABLE orders(SER_NO NUMBER UNIQUE,ORDER_ID NUMBER,ORDER_DATE DATE NOT NULLSTATUS VARCHARD2(10)CHECK (status IN (‘CREDIT‘,‘CASH‘)),PROD_ID_NUMBERREFERENCES PRODUCTS(PRODUCT_ID),ORD_TOTAL NUMBER,PRIMARY KEY (order id, order date));For which columns would an index be automatically created when you execute the aboveSQL statement? ()

A. SER_NO

B. ORDER_ID

C. STATUS

D. PROD_ID

E. ORD_TOTAL

F. Composite index on ORDER_ID and ORDER_DATE


参考答案:A, F

第7题:

You are granted the CREATE VIEW privilege. What does this allow you to do?()

  • A、Create a table view.
  • B、Create a view in any schema.
  • C、Create a view in your schema.
  • D、Create a sequence view in any schema.
  • E、Create a view that is accessible by everyone.
  • F、Create a view only of it is based on tables that you created.

正确答案:C

第8题:

Examine the statement: Create synonym emp for hr. employees; What happens when you issue the statement? ()

A. An error is generated.

B. You will have two identical tables in the HR schema with different names.

C. You create a table called employees in the HR schema based on you EMP table.

D. You create an alternative name for the employees table in the HR schema in your own schema.


参考答案:D

第9题:

You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to create a Windows Installer package for a Windows Forms application.The package will be deployed on Windows Vista computers.You need to ensure that during deployment the installation does not elevate privileges of the user installing the application.What should you do?()

  • A、Create a custom action and set the NoImpersonate property to true
  • B、Create a custom action and set the NoImpersonate property to false
  • C、Create a manifest and set the RequestedExecutionLevel level attribute to AsInvoker.
  • D、Create a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator.

正确答案:C

第10题:

Which command do you use to create a recovery-catalog schema? ()

  • A、create recovery catalog 
  • B、create catalog
  • C、build catalog 
  • D、catalog create 
  • E、mount catalog 

正确答案:B

更多相关问题