Certification

C Sharp Test Question 8

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 [...]

{ 0 comments }


C Sharp Test Question 7

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: [...]

{ 0 comments }


C Sharp Test Question 6

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 [...]

{ 0 comments }


C Sharp Question 5

by admin on March 9, 2010

You are developing a console application that uses .NET Framework text processing libraries. You write the following code to process text: StringBuilder sb = new StringBuilder(5); sb.Append(“01234567890123456789″); sb.Length = 10; sb.Append(“AB”); Console.WriteLine(“Length = {0}”, sb.Length); Console.WriteLine(“Capacity = {0}”, sb.Capacity); You must determine the value of sb.Length and sb.Capacity printed by this code segment. Which values [...]

{ 0 comments }


C Sharp Question 4

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 [...]

{ 0 comments }


C Sharp Test Question 2

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 [...]

{ 0 comments }


C Sharp Ptactice Test Questions

by admin on March 9, 2010

You develop a Windows application by using the .NET Framework. The application makes use of an assembly named MyAssembly. The assembly file MyAssembly.dll is deployed in a folder named bin20 under the application’s root directory. The MyAssembly assembly is not strongly named. You must configure the Windows application to specify the location of the MyAssembly [...]

{ 0 comments }