You work as an application developer at Certkiller .com. You have been given the responsibility of creating a class named CalcSalary that will determine the salaries of Certkiller .com’s staff.The CalcSalary class includes methods to increment and decrement staff salaries.You would like to invoke the IncrementSalary and DecrementSalary methods dynamically at runtime from the sales manager application when needed. After viewing the information displayed in the exhibit, you decide to use the Salary delegate to invoke these methods. using System; public delegate boolSalary (Employee Emp, double Amount); public class CalcSalary { // for promotions public static bool IncrementSalary (Employee Emp, double Amount) { // implementation details } // for demotions public static bool DecrementSalary (Employee Emp, double Amount) { // implementation details } What code should you use?()
查看答案
Your network contains a server that runs Windows Server 2008. The server has the Network Policy and Access Services server role installed.You need to allow only members of a global group named Group1 VPN access to the network. What should you do? ()
Add Group1 to the RAS and IAS Servers group.
B. Add Group1 to the Network Configuration Operators group.
Create a new network policy and define a group-based condition for Group1. Set the access permission of the policy to Access granted. Set the processing order of the policy to 1.
D. Create a new network policy and define a group-based condition for Group1. Set the access permission of the policy to Access granted. Set the processing order of the policy to 3.
Certkiller。COM有一个服务器,Windows Server 2008上运行。该服务器还具有Active Directory轻型目录服务(AD LDS)中运行的一个实例。为了测试AD LDS的,你需要复制位于网络上的一台测试计算机上的AD LDS实例。要达到这个目标,你应该怎么做呢()
A. 在测试计算机上执行AD LDS安装向导创建和安装AD LDS中的翻版。
B. 在测试计算机上执行repadmin/ BS
You create an ASP.NET MVC 2 Web application that contains the following controller class. In the Views folder of your application, you add a view page named Index.aspx that includes the following @ Page directive. You test the application with a browser.You receive the following error message when the Index method is invoked: "The view 'Index' or its master was not found." You need to resolve the error so that the new view is displayed when the Index method is invoked.What should you do?()
A. Change the name of the Index.aspx file to Product.aspx.
B. Create a folder named Product inside the Views folder. Move Index.aspx to the Product folder.
C. Replace the @ Page directive in Index.aspx with the following value.
D. Modify the Index method by changing its signature to the following:public ActionResult Index(Product p)
You have a server that runs Windows Server 2008.You need to configure the server as a VPN server. What should you install on the server? ()
A. Windows Deployment Services server role and Deployment Server role service.
B. Windows Deployment Services server role and Transport role Service.
C. Network Policy and Access Services server role and Routing and Remote Access Services role service.
D. Network Policy and Access Services server role and Host Credential Authorization Protocol role.