98-361 Premium Bundle

98-361 Premium Bundle

Microsoft MTA Software Development Fundamentals Certification Exam

4.5 
(14985 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

Microsoft 98-361 Free Practice Questions

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

Q2. You need to update the Region fields for customers whose reference code is "TKY". The updated Region should be set to "Japan". Also, this change should affect only customers who live in Tokyo. Which of the following SQL statement should you use? 

A. UPDATE Customers SET Region = 'Japan' 

WHERE RefCode = 'TKY' AND City = 'TOKYO' 

B. UPDATE Customers SET Region = 'Tokyo' 

WHERE RefCode = 'TKY' AND City = 'Japan' 

C. UPDATE Customers SET Region = 'Tokyo' 

WHERE RefCode = 'TKY' 

D. UPDATE Customers SET Region = 'Japan' 

WHERE RefCode = 'TKY' 

Answer:

Q3. You are developing a C# program that makes use of a singly linked list. You need to traverse all nodes of the list. Which of the following items will you need to accomplish this requirement? 

A. link to the head node 

B. link to the tail node 

C. data in the head node 

D. data in the tail node 

Answer:

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

Q5. You are developing a restaurant locator Web sitr in ASP.NET and C#. As users browse through the Web site, each of the Web pages must display a list of the recently viewed restaurant in the lower left corner. You want this information to be available across Web pages and browser restarts but do not want to use server side resources to accomplish this. Which of the following state management techniques will help you accomplish this requirement with minimum effort? 

A. hidden fields 

B. view state 

C. cookies 

D. sessions 

Answer:

Q6. You are invoking a Web service method that returns an ArrayList object. The client application is written is C#, whereas the Web service is written in Visual Basic. The Web service is outside your corporate firewall. You receive an "object not found" error when you call the method that returns the ArrayList object but can call other methods successfully from the same Web service. What could be the problem? 

A. The client and the Web service are not written in the same programming language. 

B. The firewall is blocking all SOAP calls. 

C. The client project does not contain a reference to the System.Collection namespace. 

D. The ArrayList class cannot be serialized. 

Answer:

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

int x = 6 + 4 * 4 / 2 - 1; 

What will be the value of the variable x after this statement is executed? 

A. 19 

B. 13 

C. 20 

D. 14 

Answer:

Q8. You are writing a C# program that needs to manipulate very large integer values that may exceed 12 digits. 

The values can be positive or negative. Which data type should you use to store a variable like this? 

A. int 

B. float 

C. double 

D. long 

Answer:

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

Q10. You are developing an algorithm for a retail Web site. You need to calculate discounts on certain items based on the quantity purchased. You develop the following decision table to calculate the discount: 

If a customer buys 50 units of an item, what discount will be applicable to the purchase? 

A. 5 percent 

B. 10 percent 

C. 15 percent 

D. 20 percent 

Answer:

Q11. You are developing an ASP.NET applications that calls Web service to retrieve earthquake predictions for a given geographical area. The Web service performs complex, time-consuming calculations to generate the predictions. It is hosted on government Web server, where you have permission only to invoke the Web service. The users of your Web application complain that the user interface freezes when they attempt to retrieve the perditions. You have full access to the Web server that hosts your ASP.NET application. Which of the following approach should you use to resolve this issue? 

A. Move the ASP.NET application to a faster computer. 

B. Connect to the Web service over faster Internet connection. 

C. Install additional memory on the Web server that hosts the ASP.NET application. 

D. Use asynchronous calls to invoke the Web service from within your ASP.NET application. 

Answer:

Q12. Your application needs to store the customer list in a text file. You want to minimize the size of this disk file and be able to open it in common text editors. Which of the following classes should you use to write the file? 

A. StreamReader 

B. StreamWriter 

C. BinaryWriter 

D. XmlWriter 

Answer:

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

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

Q15. You are developing an ASP.NET appilcation using C#. You create a code-behind class named Status that contains the business logic. This class is under the namespace Northwind and is stored in a file named status. aspx.cs. You need to writebthe user interface code that uses this class. Whitch of the following cod segments should you use? 

A. <% Page Language="c#" Codebehined="status.aspx.cs" ClassName="Northwind.Status"%> 

B. <% Page Language="c#" Codebehined="status.aspx.cs" Inherits="Northwind.Status" %> 

C. <% Page Language="c#" Src="status.aspx.aspx.cs" Inherits="Northwind.Status" %> 

D. <% Page Language="c#" Src="status.aspx.aspx.cs" ClassName="Northwind.Status" %> 

Answer:

Q16. You need to perform data validation to ensure that the input fields are not empty and the user's email address and phone numbers have been provided in the required format. You need to minimize the transmission of information across the networks. Which of the following coding approaches should you follow? 

A. Use JavaScript codethat executes on the Web server 

B. Use C# codethat executes on the Web server 

C. Use JavaScript code thatexecutes on the browser server 

D. Use C# code thatexecutes on the browser server 

Answer:

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

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

01: int count = 0; 

02: while (count < 5) 

03: { 

04: if (count == 3) 

05: break; 

06: count++; 

07: } 

How many times will the control enter the while loop? 

A. 5 

B. 4 

C. 3 

D. 2 

Answer:

START 98-361 EXAM