we provide Vivid Microsoft 98 361 software development fundamentals brain dumps which are the best for clearing 98 361 software development fundamentals test, and to get certified by Microsoft Microsoft MTA Software Development Fundamentals. The 98 361 software development fundamentals Questions & Answers covers all the knowledge points of the real software development fundamentals mta exam 98 361 exam. Crack your Microsoft software development fundamentals mta exam 98 361 Exam with latest dumps, guaranteed!
Q41. You are developing a C# program. You write the following code:
01: int count = 0;
02: while (count < 5)
04: if (count == 3)
How many times will the control enter the while loop?
Q42. You have written a C# method that opens a database connection by using the SqlConnect object. The method retrieves some information from the database and then closes the connection. You need to make sure that your code fails gracefully when there is a database error. To handle this situation, you wrap the database code in a try-catch-finally block. You use two catch blocks—one to catch the exceptions of type SqlException and the second to catch the exception of type Exception. Which of the following places should be the best choice for closing the SqlConnection object?
A. Inside the try block, before the first catch block
B. Inside the catch block that catches SqlException objects
C. Inside the catch block that catches Exception objects
D. Inside the finally block
Q43. You need to provide complex multi-way branching in your C# program. You need to make sure that your code is easy to read and understand. Which of the following C# statements should you use?
Q44. 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
Q45. You write the following code in your Web page:
protected void Page_Load
(object sender, EventArgs e)
/* additional code here */
You expect this code to be executed in response to the Load event of the ASP.NET page. However, when you request the page, you notice that the method is not executed. What should you do to make sure that the Page_Load method is executed when the Load event of the Wep page is fired?
A. Set the AutoEventWireup attribute of the @page directive to true.
B. Set the AutoEventWireup attribute of the @page directive to false.
C. Set the IsCallBack property of the page class to true.
D. Set the IsPostBack property of the page class to true.
Q46. In your application, you are using a queue data structure to manipulate information. You need to find whether a data item exists in the queue, but you don’t want to actually process that data item yet. Which of the following queue operations will you use?
Q47. You are C# developer who is developing a Windows application. You need to provide a common definition of a base class that can be shared by multiple derived classes. Which keyword should you use to declare the new class?
Q48. You are C# developer who is developing a Windows application. You write the following code:
Later in the code, you need to assign the value in the variable o to an object of Rectangle type. You expect that at runtime the value in the variable o is compatible with the Rectangle class. However, you need to make sure that no exceptions are raised when the value is assigned. Which of the following code should you use?
A. Rectangle r = (Rectangle) o;
B. Rectangle r = o;
C. Rectangle r = o as Rectangle;
D. Rectangle r = o is Rectangle;
Q49. Suppose that you are a new C# developer and are reviewing object-oriented programming fundamentals.
Which of the following statements is not true?
A. A class is a concrete instance of an object.
B. A class defines the template for an object.
C. A class is a definition of a new data type.
D. A constructor is used to initialize the data members of the object.
Q50. 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" %>