getcertified4sure.com

Beginners Guide: exam 98 361




Proper study guides for Renovate Microsoft Microsoft MTA Software Development Fundamentals certified begins with Microsoft software development fundamentals mta exam 98 361 preparation products which designed to deliver the Validated software development fundamentals mta exam 98 361 questions by making you pass the mta 98 361 test at your first time. Try the free mta exam 98 361 demo right now.

Q1. You are developing an application that stores data in SQL Server 2005 database. You need to write a query that retrieves all orders in the orders table that were placed on January 1, 2011. You write the following query: 

SELECT * FROM Orders 

WHERE OrderDate = 01/01/2011 

The statement executes without any error but does not return any data. You are certain that the database contains order from this date. How should you correct the SQL statement? 

A. SELECT * FROM Orders 

WHERE OrderDate = #01/01/2011# 

B. SELECT * FROM Orders 

WHERE OrderDate = %01/01/2011% 

C. SELECT * FROM Orders 

WHERE OrderDate = '01/01/2011' 

D. SELECT * FROM Orders 

WHERE OrderDate = "01/01/2011" 

Answer: C


Q2. You are developing a program that performs frequent insert and delete operations on the data. Your requirement also dictates the capability to access previous and next records when the user clicks the previous or next button. Which of the following data structures will best suit your requirements? 

A. array 

B. circular linked list 

C. linked list 

D. doubly linked list 

Answer:


Q3. You are developing a Windows Form with a multiple document interface (MDI). You need to write code that arranges the child windows vertically within the client region of the MDI parent form. Which of the following MdiLayout values should you pass to the LayoutMdi method? 

A. MdiLayout.TileVertical 

B. MdiLayout.Cascade 

C. MdiLayout.TileHorizontal 

D. MdiLayout.ArrangeIcons 

Answer:


Q4. You are writing code for a business application by using C#. Write the following statement to declare an array: 

int[] numbers = { 1, 2, 3, 4, 5, }; 

Now, you need to access the second item in this array (the number 2). Which of the following expression should you use? 

A. numbers[0] 

B. numbers[1] 

C. numbers[2] 

D. numbers[3] 

Answer:


Q5. 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:


Q6. You are developing code that defines an InitFields method. The method takes two parameters of data type double and does not return any value to the calling code. Which of the following code segments would you use to define the InitFields method? 

A. public double InitFields(double l, double w) 

length = l; 

width = w; 

return length * width; 

B. public void InitFields(double l, double w) 

length = l; 

width = w; 

C. public void InitFields(double l) 

length = l; 

width = l; 

return; 

D. public double InitFields(double l, double w) 

length = l; 

width = w; 

Answer:


Q7. You are developing a sorting algorithm that uses partitioning and comparison to arrange an array of numbers in the correct order. You write a method that partitions the array so that the items less than pivot go to the left side, whereas the items greater than pivot go to the right side. The partitioning method has the following signature: 

static int Partition (int[] numbers, int left, 

int right, int pivotIndex) Which of the following algorithms should you use to sort the array using the Partition method? 

A. static int[] QuickSort(int[] numbers, 

int left, int right) 

if (right > left) 

int pivotIndex = left + (right - left) / 2; 

pivotIndex = Partition( 

numbers, left, right, pivotIndex); 

QuickSort( 

numbers, left, pivotIndex - 1); 

QuickSort( 

numbers, pivotIndex + 1, right); 

return numbers; 

B. static int[] QuickSort(int[] numbers, 

int left, int right) 

if (right > left) 

int pivotIndex = left + (right - left) / 2; 

pivotIndex = Partition( 

numbers, left, right, pivotIndex); 

QuickSort( 

numbers, left, pivotIndex); 

QuickSort( 

numbers, pivotIndex + 1, right); 

return numbers; 

C. static int[] QuickSort(int[] numbers, 

int left, int right) 

if (right > left) 

int pivotIndex = left + (right - left) / 2; 

pivotIndex = Partition( 

numbers, left, right, pivotIndex); 

QuickSort( 

numbers, left, pivotIndex - 1); 

QuickSort( 

numbers, pivotIndex, right); 

} return numbers; } 

D. static int[] QuickSort(int[] numbers, 

int left, int right) 

if (right > left) 

int pivotIndex = left + (right - left) / 2; 

pivotIndex = Partition( 

numbers, left, right, pivotIndex); 

QuickSort( 

numbers, left, pivotIndex + 1); 

QuickSort( 

numbers, pivotIndex + 1, right); 

return numbers; 

Answer:


Q8. You are developing an application that writes messages to the Windows application event log for the local machine. What should you use to view the messages written by the application?

A. Event Viewer 

B. Notepad 

C. XPS Viewer 

D. Remote Desktop Connection 

Answer:


Q9. 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:


Q10. You are studying various sorting algorithms to understand, analyze, and compare the various sorting techniques. Which of the following techniques should you utilize when using the BubbleSort algorithm? 

A. comparison 

B. comparison and swap 

C. comparison and partition 

D. partition and swap 

Answer: