by admin on March 9, 2010
Which is the correct declaration of nullable integer? Explanation: This is the proper way to declare and assign a nullable integer. In C#, you could also use the following . int? i = null; Objectives Developing applications that use system types and collections Manage data in a .NET Framework application by using .net Framework 2.0 [...]
by admin on March 9, 2010
You are developing a text processing application by using the .NET Framework. You write the following code to iterate over a collection of strings and populate a ListBox control with the values it contains (line numbers are for reference only). The GetStrings function returns an array of strings. 01: StringCollection myStrCol = new StringCollection(); 02: [...]
by admin on March 9, 2010
You are developing a logging module for a large application by using the .NET Framework. You need to append logging information to a file named application.log. This log file is opened when the application is started and is closed only when the application is closed. However, you append text several times to the file during [...]
by admin on March 9, 2010
You are developing a .NET Framework application. You write the following code in your application: public interface IShape { double GetArea(); double GetPerimeter(); } public class Shape : IShape { public Shape() { } public double GetArea() { double area = 0; // Additional code goes here return area; } public double GetPerimeter() { double [...]
by admin on March 9, 2010
You use the .NET Framework to develop a client-server application. The server part of the application runs on a computer running Microsoft Windows Server 2003. All client computers run Microsoft Windows XP Professional. You need to write code that performs authentication and establishes a secure connection between the server and the client. You must make [...]
by admin on March 9, 2010
You create a Windows service application that consists of two services. One service monitors a directory for new orders and the other service replicates a database table with the most up-to-date inventory information. You need to develop a project installer class to install these services. What should you do? (Each correct answer presents part of [...]