Cause all that matters here is passing the Microsoft software development fundamentals mta exam 98 361 exam. Cause all that you need is a high score of exam 98 361 Microsoft MTA Software Development Fundamentals exam. The only one thing you need to do is downloading Pass4sure software development fundamentals mta exam 98 361 exam study guides now. We will not let you down with our money-back guarantee.
♥♥ 2021 NEW RECOMMEND ♥♥
Free VCE & PDF File for Microsoft 98-361 Real Exam (Full Version!)
★ 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:
http://www.surepassexam.com/98-361-exam-dumps.html
Q21. 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
Q22. 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
Q23. You are C# developer who is developing a Windows application. You need to provide derived classes the ability to share common functionality with base classes but still define their own unique behavior. Which object oriented programming concept should you use to accomplish this functionality?
A. encapsulation
B. abstraction
C. polymorphism
D. inheritance
Answer: D
Q24. 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
Q25. You are writing code for a class named Book. You should be able to get a list of all books sorted by the author’s last name. You need to write code to define this behavior of a class. Which of the following class elements should you use?
A. method
B. property
C. event
D. delegate
Answer: A
Q26. Which of the following is not true about linked lists?
A. A linked list does not allow random access to its items.
B. A link to the head node can help you locate all the nodes in a linked list.
C. The items in a linked list must be stored in contiguous memory locations.
D. Linked lists are extremely fast in performing insert and delete operations.
Answer: C
Q27. Arrange the various activities of an application lifecycle in the order in which they are likely to occur.
A. Requirements analysis, design, coding, testing, and release
B. Design, requirements analysis, coding, testing, and release
C. Release, requirements analysis, coding, testing, and design
D. Requirements analysis, design, release, coding, and testing
Answer: A
Q28. You are writing a C# program that needs to iterate a fixed number of times. You need to make sure that your code is easy to understand and maintain even when the loop body contains complex code. Which of the following C# statements provide the best solution for this requirement?
A. while
B. for
C. for each
D. do-while
Answer: B
Q29. 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
Q30. 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: A