Act now and download your Microsoft mta exam 98 361 test today! Do not waste time for the worthless Microsoft 98 361 software development fundamentals tutorials. Download Abreast of the times Microsoft Microsoft MTA Software Development Fundamentals exam with real questions and answers and begin to learn Microsoft mta 98 361 with a classic professional.
Q11. You create an ASP.NET Web Service that tracks the shipment of orders. The Web service includes a class nemed StatusService, which contains the following method:
Public string GetStatus()
{
/* additional code here */
}
You note that you can instantiate the StatusService class from a Web service client project, but the GetStatus method is not available. What could be the problem?
A. Only properties can be part of the public interface of a Web service.
B. You must mark the method with the WebService attribute.
C. The methods of a Web service can return only object data.
D. You must mark the method with the WebMethod attribute.
Answer: D
Q12. You are developing a new application that optimizes the processing of a manufacturing plant’s operations. You need to implement a data structure that works as a “buffer” for overflow capacity. When the manufacturing capacity is available, the items in the buffer need to be processed in the order in which they were added to the buffer. Which data structure should you use to implement such buffer?
A. array
B. linked list
C. stack
D. queue
Answer: D
Q13. Suppose that you are writing code for a class named Product. You need to make sure that the data members of the class are initialized to their correct values as soon as you create an object of the Product class. The initialization code should always be executed. What should you do?
A. Create a static method in the Product class to initialize data members.
B. Create a constructor in the Product class to initialize data members.
C. Create a static property in the Product class to initialize data members.
D. Create an event in the Product class to initialize data members.
Answer: B
Q14. 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: B
Q15. You are developing a C# program. You write a recursive method to calculate the factorial of a number. Which of the following code segment should you use to generate correct results?
A. public static int Factorial(int n)
{
if (n == 0)
{
return 1;
}
else
{
return n * Factorial(n - 1);
}
}
B. public static int Factorial(int n)
{
if (n == 0)
{
return 1;
}
else
{
return (n – 1) * Factorial(n);
}
}
C. public static int Factorial(int n)
{
if (n == 0)
{
return n;
}
else
{
return Factorial(n - 1);
}
}
D. public static int Factorial(int n)
{
return n * Factorial(n - 1);
}
Answer: A
Q16. You develop a new ASP.NET inventory application on the Northwind Web server. You deploy the files in the folder c:\WebInventory. The application should be available via the URL www.northwind.com/inventory. The URL www.northwind.com is already set up to point to the Northwind Web server. What should you do to make your inventory application available at the expected URL?
A. Change the name of the directory c:\WebInventory to c:\Inventory.
B. Create a virtual directory named Inventory and point it to c:\WebInventory.
C. Create a virtual directory named WebInventory and point it to c:\Inventory.
D. Move the directory c:\WebInventory to the c:\inetput\wwwroot directory.
Answer: B
Q17. You are developing a new Windows application that needs to write messages to the event log. You use the EventLog class to write these messages. Each event log message must specify the name of the application writing to an event log. Which property of the EventLog class should you use?
A. Source
B. Log
C. Site
D. MachineName
Answer: A
Q18. You need to gain a better understanding of the solution before writing the program. You decide to develop an algorithm that lists all necessary steps to perform an operation in the correct order. Any technique that you use should minimize complexity and ambiguity. Which of the following techniques should you use?
A. flowchart
B. decision table
C. C# program
D. A paragraph in English
Answer: A
Q19. Suppose that you defined a class Scenario that defines functionality for running customized pivot transform on large data sets. You do not want the functionality of this class to be inherited into derived classes. What keyword should you use to define the Scenario class?
A. sealed
B. abstract
C. private
D. internal
Answer: A
Q20. You are writing a C# program that iterates through a collection such as arrays and lists. You need to make sure that you process each item in the collection once. You also need to ensure that your code is easy to read and debug. Which of the following C# statements provide the best solution for this requirement?
A. while
B. for
C. foreach
D. do-while
Answer: C