What should you do?
You work as an application developer at Domain.com. Domain.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?
Which code segment should you use?
You are developing an application that stores data about your company’s sales and technical support teams.
You need to ensure that the name and contact information for each person is available as a single collection when a user queries details about a specific team.
You also need to ensure that the data collection guarantees type safety.
Which code segment should you use?
What should you do?
You are required to launch the App.exe process, and specify sample.txt as the input file.
App.exe will then use the contents of sample.txt to establish the environment’s current settings.
You need to ensure that the code you use meets these requirements.
What should you do?
Which code segment should you use?
You are developing an auditing application to display the trusted ClickOnce applications that are installed on a computer.
You need the auditing application to display the origin of each trusted application.
Which code segment should you use?
What should you do?
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?
Which method should you use on the DirectorySecurity object?
You create a DirectorySecurity object for the working directory.
You need to identify the user accounts and groups that have read and write permissions.
Which method should you use on the DirectorySecurity object?
What should you do?
Domain.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:
GRAPHICS – is not required for reply!
You have to adjust the HitCounter performance counter when a hit occurs.
What should you do?
Which code segment should you use?
You are developing an application that will deploy by using ClickOnce. You need to test if the application executes properly. You need to write a method that returns the object, which prompts the user to install a ClickOnce application. Which code segment should you use?
You need to write more code to class to run DoWork() with 30-second intervals
Given the code like this:
while(!loop)
{
//Thread code here
Dowork();
}
You need to write more code to class to run DoWork() with 30-second intervals using minimum resources
What should you do?
The Domain.com network contains an application server named Certkiller -SR07.
You have been asked to profile a business application that can be accessible using the Event Log API.
You want to achieve this by creating a custom event log on Certkiller -SR07.
What should you do?