You create a method that runs by using the credentials of th

题目
单选题
You create a method that runs by using the credentials of the end user. You need to use  Microsoft Windows groups to authorize the user. You must add a code segment that identifies whether a user is in the local group named Clerk.Which code segment should you use?()
A

A

B

B

C

C

D

D

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You have a WINS server that runs Windows Server 2003 Service Pack 2 (SP2).You need to schedule a backup of the WINS database whenever the WINS service stops.What should you do? ()

A. Create a scheduled task that runs Wins.exe.

B. Create a scheduled task that runs Netsh.exe.

C. Modify the General options from the WINS snap-in.

D. Schedule a system state backup by using Windows Backup


参考答案:C

第2题:

You have a server that runs Windows Server 2008.You create a new quota template. You apply quotas to 100 folders by using the quota template. You need to modify the quota settings for all 100 folders. You must achieve this goal by using the minimum amount of administrative effort. What should you do? ()

  • A、Modify the quota template.
  • B、Delete and recreate the quota template.
  • C、Create a new quota template. Modify the quota for each folder.
  • D、Create a file screen template. Apply the file screen template to the root of the volume that contains the folders.

正确答案:A

第3题:

You have a computer that runs Windows Vista. You create a dial-up connection.You need to run a custom script each time you connect by using the dial-up connection.What should you do?()

A.A

B.B

C.C

D.D


参考答案:D

第4题:

You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()

  • A、The method must return a type of either IEnumerator or IEnumerable.
  • B、The method must return a type of IComparable.
  • C、The method must explicitly contain a collection.
  • D、The method must be the only iterator in the class.

正确答案:A

第5题:

You have a server that runs Windows Server 2008 R2.You create a new quota template. You apply quotas to 100 folders by using the quota template.You need to modify the quota settings for all 100 folders. You must achieve this goal by using the minimum amount of administrative effort.What should you do?()

  • A、Modify the quota template.
  • B、Delete and recreate the quota template.
  • C、Create a new quota template. Modify the quota for each folder.
  • D、Create a file screen template. Apply the file screen template to the root of the volume that contains the folders.

正确答案:A

第6题:

Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()

  • A、Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.
  • B、Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.
  • C、Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.
  • D、Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

正确答案:B

第7题:

You create Microsoft Windows-based applications.  You create an application that requires users to be authenticated by a domain controller.  The application contains a series of processor intensive method calls that require different database connections. A bug is reported during testing.  The bug description states that the application hangs during one of the processor-intensive calls more than 50 percent of the times when the method is executed.  Your unit test for the same method was successful.You need to reproduce the bug.   Which two factors should you ascertain from the tester?()

  • A、 Security credentials of the logged on user
  • B、 Code access security settings
  • C、 Hardware settings
  • D、 Network settings
  • E、 Database settings

正确答案:D,E

第8题:

You install Windows Vista on a new computer by using the default settings. You create an administrator account and a standard user account.You log on to the computer as the standard user and attempt to install a new application. You are prompted for user credentials to complete the installation.You need to install the application on the computer.What should you do?()

A.A

B.B

C.C

D.D


参考答案:A

第9题:

You have a computer that runs Windows 7. You install a second internal hard disk drive in the computer.You attempt to create a system image and discover that the new disk is not listed as a backup destination.You need to ensure that you can use the new disk as a backup destination for system images.  What should you do?()

  • A、Create a NTFS partition.
  • B、Create a mirrored volume.
  • C、Create a system repair disc.
  • D、Log on to the computer by using a different account.

正确答案:A

第10题:

You are developing an application that receives events asynchronously.You create a WqlEventQuery instance to specify the events and event conditions to which the application must respond.You also create a ManagementEventWatcher instance to subscribe to events matching the query.You need to identify the other actions you must perform before the application can receive events asynchronously.Which two actions should you perform?()

  • A、Start listening for events by calling the Start method of the ManagementEventWatcher.
  • B、Set up a listener for events by using the EventArrived event of the ManagementEventWatcher.
  • C、Use the WaitForNextEvent method of the ManagementEventWatcher to wait for the events.
  • D、Create an event handler class that has a method that receives an ObjectReadyEventArgs parameter.
  • E、Set up a listener for events by using the Stopped event of the ManagementEventWatcher.

正确答案:A,B

更多相关问题