★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions
Free Instant Download NEW 98-361 Exam Dumps (PDF & VCE):
Available on:
https://www.certleader.com/98-361-dumps.html
It is impossible to pass Microsoft 98-361 exam without any help in the short term. Come to Actualtests soon and find the most advanced, correct and guaranteed Microsoft 98-361 practice questions. You will get a surprising result by our Rebirth Microsoft MTA Software Development Fundamentals practice guides.
2021 Sep mta exam 98-361 ebook:
Q51. You are writing a C# program. You write the following method:
public static void TestSwitch(int op1, int op2, char opr)
{
int result;
switch (opr)
{
case '+':
result = op1 + op2;
case '-':
result = op1 - op2;
case '*':
result = op1 * op2;
case '/':
result = op1 / op2;
default:
Console.WriteLine("Unknown Operator");
return;
}
Console.WriteLine("Result: {0}", result);
return;
}
However, when you compile this code, you get the following error message:
Control cannot fall through from one case label to another
How should you modify the code to make sure that it compiles successfully?
A. After each case, add the following code line: break;
B. After each case, add the following code line: continue;
C. After each case, add the following code line: goto default;
D. After each case, add the following code line: return;
Answer: A
Q52. 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: A
Q53. You are developing a Web page for a medium-sized business. You want to separate the formatting and layout of the page from its content. Which of the following technologies should you use to define the formatting and layout of the page content?
A. Cascading Style Sheet (CSS)
B. Hypertext Markup Language (HTML)
C. JavaScript
D. Hypertext Transmission Protocol (HTTP)
Answer: A
Q54. You are planning to develop a new software system for your organization. You need to verify that the implementation of the system matches with the requirements of the system. Which of the following activities would accomplish this requirement?
A. testing
B. design
C. release
D. requirements analysis
Answer: A
Q55. Which of the following languages is not considered a high-level programming language?
A. C#
B. Visual Basic
C. Common Intermediate Language
D. C++
Answer: C
Regenerate exam 98-361 sample questions:
Q56. You are developing an order-entry application that will be used by all employees in your company. You use ASP.NET to develop this application and deploy it on the company's Internet Information Services (IIS) server. What should you install on the users computers before they can access the order-entry application?
A. .NET Framework redistributable
B. .NET Framework Software Development Kit (SDK)
C. Visual Studio Express Edition
D. Web browser
Answer: D
Q57. 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: C
Q58. 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
Q59. You are developing an algorithm before you write the C# program. You need to perform some calculations on a number. You develop the following flowchart for the calculation:
If the input value of n is 5, what is the output value of the variable fact according to this flowchart?
A. 720
B. 120
C. 24
D. 6
Answer: B
Q60. Which of the following presses is responsible for providing the ASP.NET functionality?
A. inetinfo.exe
B. iexplorer.exe
C. aspnet_isapi.dll
D. aspnet_wp.exe
Answer: D