98-361 Exam - Microsoft MTA Software Development Fundamentals

certleader.com

Q1. You are creating a new class named Sphere derived from the Shape class. The Shape class has the following code: 

class Shape 

public virtual void Area() 

// additional code... 

The Area method in the Shape class should provide new functionality but also hide the Shape class implementation of the Area method. Which code segment should you use to accomplish this? 

A. class Sphere : Shape 

public override void Area() 

// additional code ... 

B. class Sphere : Shape 

public new void Area() 

// additional code ... 

C. class Sphere : Shape 

public virtual void Area() 

// additional code ... 

D. class Sphere : Shape 

public static void Area() 

// additional code ... 

Answer:

Q2. You are developing an application that manages customers and their orders. Any solution that you develop must take the least amount of effort but offer the best performance.. Which of the following situations is not a good candidate for implementation with stored procedures in your application? 

A. Retrieving the list of all customers in the database 

B. Retrieving the list of all orders for particular customers 

C. Inserting a new order into the Orders table 

D. Ad hoc querying by the database administrator 

Answer:

Q3. You are planning to develop a new software system for your organization. Someone needs to be responsible for developing system manuals and help files. Which of the following participants should you identify for this task? 

A. user interface designer 

B. content developer 

C. user interface designer 

D. technical writer 

Answer:

Q4. You created a class named GeoShape. You defined a method called Area in the GeoShape class. This method calculates the area of a geometric shape. You want the derived classes of GeoShape to supersede this functionality to support the area calculation of additional geometric shapes. When the method Area is invoked on a GeoShape object, the area should be calculated based on the runtime type of the GeoShape object. Which keyword should you use with the definition of the Area method in the GeoShape class? 

A. abstract 

B. virtual 

C. new 

D. overrides 

Answer:

Q5. You need to start a Windows service named ProcService from the command line. Which command should you use? 

A. net start ProcService 

B. net pause ProcService 

C. net continue ProcService 

D. net stop ProcService 

Answer:

Q6. You are developing an ASP.NET application that uses a Web service created by one of your large customers. This Web service provides you with the Order object, which has several properties. The developer of the Web service has informed you that a new property named Priority has added to the Order object. What should you do to be able to use the Priority property in your code with minimum effort? 

A. Create a new ASP.NET application and add a Web reference to the Web service in the new application. 

B. Delete and re-create the Web reference in the existing ASP.NET application. 

C. Update the Web reference in the existing ASP.NET application. 

D. Ask the developer of the Web service forthe updatedDLL file of the Web service. Add a reference to theDLL in your ASP.NET project. 

Answer:

Q7. You are developing a C# program. You write the following code: 

int i = 6; 

do 

if (i == 3) 

break; 

Console.WriteLine("The value of i = {0}", i); 

i++; 

while (i <= 5); 

How many times will the control enter the while loop? 

A. 0 

B. 1 

C. 2 

D. 3 

Answer:

Q8. You are developing a new Windows service application that process orders. The system administrator must be able to suspend order processing while maintenance operations are in progress. When maintenance operations are completed, order processing must be resumed without the loss in any information. How should you configure this Windows service? 

A. Override the OnPause method of the ServiceBase class. 

B. Set the CanPauseAndContinue property of the service to true. 

C. Set the CanPauseAndContinue property of the service to false. 

D. Override the OnContinue method of the ServiceBase class. 

Answer:

Q9. You are developing code for a method that calculates the discount for the items sold. You name the method CalculateDiscount. The method defines a variable, percentValue of the type double. You need to make sure that percentValue is accessible only within the CalculateDiscount method. What access modifier should you use when defining the percentValue variable? 

A. private 

B. protected 

C. internal 

D. public 

Answer:

Q10. You are developing a new Windows service application. The application contains three different Windows services. Each service will have a different start type. Which of the following classes will help you perform the installation tasks specific to each service? You must suggest a solution that requires the least coding effort. 

A. System.ServiceProcess.ServiceProcessInstaller 

B. System.ServiceProcess.ServiceInstaller class 

C. System.Configuration.Installer class 

D. System.Configuration.Installer.ComponentInstaller class 

Answer: