单选题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 AB BC CD D
单选题
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
参考解析
解析:
暂无解析
相关考题:
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.AB.BC.CD.D
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.AB.BC.CD.D
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
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.
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.
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 userB、 Code access security settingsC、 Hardware settingsD、 Network settingsE、 Database settings
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.
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.
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.
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.
You are creating a Windows Forms application by using the .NET Framework 3.5. The application displays employee names by using the TreeView control. You need to implement the drag and drop functionality in the TreeView control.Which two actions should you perform?()A、Set theAllowDrag property to true.Create an event handler for the DragOver event.B、Set theAllowDrag property to true.Create an event handler for the ItemDrag event to call the DoDragDrop method.C、Set theAllowDrag property to true.Create an event handler for the DragEnter event to call the DoDragDrop method .D、Create an event handler for the DragDrop event to handle the move or copy by itself.E、Create an event handler for the DragEnter event to handle the move or copy by itself.
You have a server that runs the Terminal Services Gateway (TS Gateway) role service. Users need to connect remotely through the gateway to desktop computers located in their offices. You create a security group named Remote1 for the users who need to connect to computers in their offices. You need to enable the users to connect to the TS Gateway. What should you do?()A、Add the Remote1 security group to the local remote desktop users group on the TS Gateway server.B、Create a client authorization policy. Add the Remote1 security group and enable Device redirection.C、Create a resource authorization policy. Add the Remote1 security group and enable Users to connect to any resource.D、Create a Group Policy object and enable the Set TS Gateway authentication method properties to Ask for credentials, use Basic protocol. Apply the policy to the TS Gateway server.
You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.The control will have the same properties as a TextBox control.You need to ensure that the control has a transparent background when it is painted on form.You want to achieve this goal by using the minimum amount of development effort.What should you do?()A、Create a new class that is derived from the Control class.Call the SetStyle method in the constructor.B、Create a new class that is derived from theTextBox control class.Override the OnPaint method in the constructor.C、Create a new class that is derived from the Control class.Set the BackColor property of the control to Transparent.Call the SetStyle method in the constructor.D、Create a new class that is derived from theTextBox control class.Set the BackColor property of the control to Transparent in the constructor.Call the SetStyle method in the constructor.
You have a netbook computer that runs Windows 7. The computer has a single 30-GB partition that has 10GB of free space. You need to create a system image of the computer by using Windows Backup. You mustachieve this goal by using the minimum amount of time. What should you do first?()A、Attach an external hard disk.B、Attach an external DVD burner.C、Convert the local hard disk to a GPT disk.D、Create and attach a virtual hard drive (VHD).
You have a server that runs Windows Server 2003 Service Pack 2 (SP2). You create an Automated System Recovery (ASR) backup of the server. You restart the server and receive a critical error. You need to restore the server by using ASR. What should you do first? ()A、Start the computer by using Safe mode.B、Start the server by using the ASR floppy disk.C、Start the computer by using the Last Known Good Configuration option.D、Start the server by using the Windows Server 2003 SP2 installation media.
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a window named ManageOrders that contains a Button control named showOtherSide. You add an animation named FlipSides as a resource of ManageOrders. You need to ensure that the following requirements are met: FlipSides runs each time a user clicks showOtherSide. FlipSides runs only when a user clicks showOtherSide. What should you do?()A、Add a property trigger to the Triggers collection of ManageOrders. Configure the property trigger to be based on the IsPressed property of showOtherSide.B、Add an event trigger to the Triggers collection of ManageOrders. Configure the event trigger to be based on the Click event of showOtherSide.C、Call the BeginAnimation method of showOtherSide. Pass FlipSides as a parameter of the BeginAnimation method.D、Call the BeginAnimation method of ManageOrders. Pass FlipSides as a parameter of the BeginAnimation method.
Your network contains an Active Directory domain named contoso.com. The domain contains a member server named Server1. Server1 runs Windows Server 2012 R2 and has the File Server server role installed. On Server1, you create a share named Documents. You need to ensure that users can recover files that they accidently delete from Documents. What should you do?()A、Enable shadow copies by using Computer ManagementB、Modify the Startup type of the Volume Shadow Copy Service (VSS) by using the Services consoleC、Create a recovery partition by using Windows Assessment and Deployment Kit (Windows ADK).D、Create a storage pool that contains a two-way mirrored volume by using Server Manager
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 nede to modify the quota settings for al 100 folders. You must achive this goal by using the minimum amount of administrative effort. What should you do()? A、Modify the quota templateB、Delte and recreate the quota templateC、Create a new quota template. modify the quota for each folderD、Create a file screen template. Apply the file screen template to the root of the volume that contains the folders.
You have a Web server named Web1 that runs Windows Server 2003 Service Pack 2 (SP2). Users on the internal network connect to the Web site on Web1 by using the URLhttp://www.contoso.com. From the Internet, you cannot connect to the Web site by using the URL http://www.contoso.com. You can connect to the Web site by using the public IP address of Web1.You need to ensure that users on the Internet can connect to the Web site on Web1 by using the URL http://www.contoso.com. You deploy a DNS server that is accessible on the Internet. What should you do next?()A、Create a stub zone for contoso.com. B、Create a primary zone for contoso.com. C、Create a secondary zone for contoso.com. D、Configure a conditional forwarder for contoso.com.
单选题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?()ACreate an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.BCreate an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.CCreate an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.DCreate an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.
单选题You are creating a Windows application for graphical image processing by using the .NET Framework 3.5. You create an image processing function and a delegate.You plan to invoke the image processing function by using the delegate.You need to ensure that the calling thread meets the following requirements: (1)It is not blocked when the delegate is running (2)It is notified when the delegate is complete What should you do?()ACall the Invoke method of the delegate.BCall the BeginInvoke and EndInvoke methods of the delegate in the calling thread.CCall the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method in the callback method.DCall the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method of the delegate in the calling thread.
多选题You are creating a Windows Forms application by using the .NET Framework 3.5. The application displays employee names by using the TreeView control. You need to implement the drag and drop functionality in the TreeView control.Which two actions should you perform?()ASet theAllowDrag property to true.Create an event handler for the DragOver event.BSet theAllowDrag property to true.Create an event handler for the ItemDrag event to call the DoDragDrop method.CSet theAllowDrag property to true.Create an event handler for the DragEnter event to call the DoDragDrop method .DCreate an event handler for the DragDrop event to handle the move or copy by itself.ECreate an event handler for the DragEnter event to handle the move or copy by itself.
多选题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?()ASecurity credentials of the logged on userBCode access security settingsCHardware settingsDNetwork settingsEDatabase settings
多选题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?()AStart listening for events by calling the Start method of the ManagementEventWatcher.BSet up a listener for events by using the EventArrived event of the ManagementEventWatcher.CUse the WaitForNextEvent method of the ManagementEventWatcher to wait for the events.DCreate an event handler class that has a method that receives an ObjectReadyEventArgs parameter.ESet up a listener for events by using the Stopped event of the ManagementEventWatcher.
单选题You have a public computer that runs Windows XP Professional. All users log on to the computer by using the same user account. You log on to the computer by using the local administrator account and attempt to access a secure Web site. You discover that you have automatically logged on to the secure Web site by using the credential of another user. You need to connect to the secure Web site by using your own credentials. What should you do?()ARun ipconfig /flushdns at the command prompt. BReset the password for the local administrator user account. CFrom the Internet Options in Internet Explorer, clear the AutoComplete history.DFrom the Internet Options in Internet Explorer, delete the Temporary Internet Files.
单选题You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Frameworkversion 3.5. You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application. You need to ensure that the application displays the details of the client-side object on the debugger console. What should you do?()AUse the Sys.Debug.fail method. BUse the Sys.Debug.trace method. CUse the Sys.Debug.assert method. DUse the Sys.Debug.traceDump method.
单选题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?()AThe method must return a type of either IEnumerator or IEnumerable.BThe method must return a type of IComparable.CThe method must explicitly contain a collection.DThe method must be the only iterator in the class.