You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application that will connect to the Microsoft SQL Server 2005 database. The application uses an XML file that contains product data. Furthermore, a corresponding XSD file contains the schema of the XML file. You want the application to do the following: Loads the XML file in a typed DataSet and validates it against the schema provided in the XSD file. What should you do? ()
You work as the application developer at Cert-Tech.com. Cert-Tech.com uses Visual Studio.Net 2005 as its application development platform. You use a Windows XP Professional client computer named Client01 as your development computer. You are developing a .Net Framework 2.0 application on Client01. You write the code shown below:Public Class Shape Private shapeName as String Public Sub Shape(ByVal shapeName as String) Me.shapename=shapeName End Sub Public Overridable Fuction GetName() As String Return shapeName End Function Private Sub DrawShape() ’Additional code goes here End Sub End Class You later decide to have the application compiled and registered for COM interoperability. The other developers on your team complaing that they are unable to create an instance of the Shape class in their COM applications. You are required to ensure that COM applications are able to create an instance of the Shape class. What should you do?()
You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application allows administrators to control Windows services dynamically without using the Services MMC. You start by creating a class named LocalServiceController. You need to add the correct code to the LocalServiceController class to ensure that administrators are able to start local Windows services.What code should you use?()
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You need to ensure that the application is able to load staff information from an XML file into aDataSet instance. The XML file contains an inline schema. You have to call a method of theDataSet class in order to load the information. Identify how you can accomplish this?()
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?()
You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application that will connect to the Microsoft SQL Server 2005 database. Your application contains the following code. string queryString = "Select * from dbo.Users"; SqlCommand command = new SqlCommand(queryString, (SqlConnection)connection)); You want to get the value that is contained in the first column of the first row of the result set returned by the query. What should you do? ()
You work as an application developer at Certkiller .com. You have been given the task of developing a Windows service application that regularly monitors other Windows services on the same computer. This Windows service application must also log any abnormal file system activity. You have added the following class to the Windows service application: public class EnumerateService : ServiceBase { public static EnumerateService () { this.ServiceName = "Enumerate Service"; this.CanStop = true; } protected override void OnStart (string[] args) { // Enumerate all services and initialize the FileSystemWatcher } protected override void OnStop () { // Stop the FileSystemWatcher and perform cleanup } public static void Main () { EnumerateService service = new EnumerateService(); } } You then create the installer for the Windows service application, and install the Windows service application. You have configured the Windows service Startup type to Automatic, and rebooted the system. You then test the new Windows service application, and find that it is not working.You need to ensure that the service is working properly. What should you do?()
You work as a Web Developer at Certkiller.com. You make use of Microsoft ASP.NET 3.5 in orderto create a Web Site. In a separate code file you create the following class: public static class _Colors { public static Color NormalActivityColor = Color.Green; public static Color WarningActivityColor = Color.Yellow; public static Color ErrorActivityColor = Color.Red; public static Color GetRandomColor() { Random random = new Random((int)DateTime.Now.Ticks); int randomArgbValue = random.Next(); Color color = Color.FromArgb(255, Color.FromArgb(randomArgbValue)); return color; } } You need to ensure that the class is consumed by the Web Site. You have to configure the WebSite project. What should you do?()
You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that handles passes for Certkiller .com’s parking lot. The application has to store and retrieve vehicle information using a vehicle identification number (VIN).You need to use the correct code to ensure type-safety. What should you do?()
You work as an application developer at Certkiller .com. Certkiller .com has asked you to create a multi-threaded application, which executes a critical database backup operation on an hourly basis. You define this operation with the following code: public void BackupDB () { //Implementation code } You then create a Thread object for the purpose of invoking this method. You need to ensure that the thread is scheduled for execution before any other thread at runtime.What should you do?()