You work as an application developer at Certkiller .com. Certkiller .com uses an application that calculates monthly payments based upon client input. You are currently debugging this application using the Microsoft Visual Studio 2005 IDE. The application contains the following code: public double CalculateMonthlyPayment (Single rate, double principal) { //Implementation code } You have discovered that unexpected results are being returned by the application. You would like to pause execution and display a message box containing an error message in the event of a negative or zero rate value is Passed to the CalculateMonthlyPayment method. You need to ensure that this only occurs during debugging mode. What should you do?()
You work as an application developer at Certkiller .com. Certkiller .com is currently using a performance counter named HitCounter. You are required to increment each time a user accesses the UI classes within the application. To do this, you start by creating performance counters using the following code: You have to adjust the HitCounter performance counter when a hit occurs. What should you do?()
A developer is designing a web application that must verify for each request: The originating request is froma trusted network. The client has a valid session.The client has been authenticated. Which design pattern provides a solution in this situation?()
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. The following code is included in the CalcSalary class: public class CalcSalary { // for promotions public static bool IncrementSalary (Employee Emp, double Amount) { if (Emp.Status == QuarterlyReview.AboveGoals) Emp.Salary += Amount; return true; } else return false; } //for demotions public static bool DecrementSalary (Employee Emp, double Amount) { if (Emp.Status == QuarterlyReview.AboveGoals) Emp.Salary -= Amount; return true; } else return false; } } You would like to invoke the IncrementSalary and DecrementSalary methods dynamically at runtime from the sales manager application, and decide to create a delegate named SalaryDelegate to invoke them. You need to ensure that you use the appropriate code to declare the SalaryDelegate delegate.What is the correct line of code?()
A developer is designing a web application that makes many fine-grained remote data requests for eachclient request. During testing, the developer discovers that the volume of remote requests significantlydegrades performance of the application. Which design pattern provides a solution for this problem?()
Certkiller.com has employed you as a Web Application Developer. The previous administratorcreated a Microsoft ASP.NET Web application using Microsoft .NET Framework v3.5. You decide to add an AJAX enabled Web form to this application. The application is configured torun on a server named CERTKILLER-SR01. (The line numbers is included for referencepurposes) 01 02 04 05 06 08 09 12 13 14 15 16 17 In the application the tmrTimer_Tick event handler is used to set the Text property of the KinglblTime Label control to the present time of CERTKILLER-SR01. You receive an instructionfrom management to make sure that the lblTime Label control is updated properly by the tmrTimerTimer control. You thus need to determine the appropriate UpdatePanel control that has to beconfigured. What should you do?()
You work as a junior Web Developer at Certkiller.com. You use Microsoft ASP.NET 3.5 to create aWeb application. The Certkiller.com network contains a test server named CERTKILLER-SR01. You deploy theapplication to CERTKILLER-SR01 and enable debugging. The application is hosted in MicrosoftInternet Information Services (IIS) 6.0. You enable debugging and Integrated Windows authentication, and disable anonymous access. You have no administrative rights on the testserver. The following configuration exists in the Web.config file: You need to configure the Web.config file in order for you to debug the application from yourdevelopment computer. What should you do?()
You work as a Web Developer at Certkiller.com. You create a Web application using MicrosoftASP.NET 3.5. The Web application is hosted on a Web farm. The Web farm consists of three Web servers. Youshould configure the Web application for session state in order to meet the following requirements: * The session state data should not be lost if a server fails. * The session state should be maintained across browser requests by the same user. You need to configure the Web.config file to meet these requirements. What shuld you do?()
You work as an application developer at Certkiller .com. You have recently created an application domain for Certkiller .com. A few weeks later you are asked to retrieve information from this application domain, which is the current application domain. What can you do to achieve this objective?()
You work as a Web Developer at Certkiller.com. You make use of Microsoft ASP.NET 3.5 tocreate a Web application. The Certkiller.com network contains a test server named CERTKILLER-SR01. You deploy theapplication to CERTKILLER-SR01 and enable debugging. The application is hosted in MicrosoftInternet Information Services (IIS) 6.0. The application pool makes use of Network Serviceidentity. You need to determine a way to configure the environment in order to permit you to debug theapplication from your development computer. What should you do?()