It is more faster and easier to pass the Microsoft 98-361 exam by using Practical Microsoft Microsoft MTA Software Development Fundamentals questuins and answers. Immediate access to the Most recent 98-361 Exam and find the same core area 98-361 questions with professionally verified answers, then PASS your exam with a high score now.
Q41. You have developed a Windows Forms application that stockbrokers will use. The stockbrokers need to view data for multiple stocks at the same time. You need to change the display and behavior of a Windows Form so that it can contain multiple child windows. What should you do?
A. Set the IsMdiChild property of the form.
B. Set the MdiParent property for all the child windows.
C. Set the MdiChild property of the form.
D. Set the IsMdiContainer property of the form to true.
Answer: D
Q42. You are creating a new class named Polygon. You write the following code:
class Polygon : IComparable
{
public double Length { get; set; }
public double Width { get; set; }
public double GetArea()
{
return Length * Width;
}
public int CompareTo(object obj)
{
// to be completed
}
}
You need to complete the definition of the CompareTo method to enable comparison of the Polygon objects.
Which of the following code segments should you use?
A. public int CompareTo(object obj)
{
Polygon target = (Polygon)obj;
double diff = this.GetArea() - target.GetArea();
if (diff == 0)
return 0;
else if (diff > 0)
return 1;
else return -1;
}
B. public int CompareTo(object obj)
{
Polygon target = (Polygon)obj;
double diff = this.GetArea() - target.GetArea();
if (diff == 0)
return 1;
else if (diff > 0)
return -1;
else return 0;
}
C. public int CompareTo(object obj)
{
Polygon target = (Polygon)obj;
if (this == target)
return 0;
else if (this > target)
return 1;
else return -1; }
D. public int CompareTo(object obj)
{
Polygon target = (Polygon)obj;
if (this == target)
return 1;
else if (this > target)
return -1;
else return 0;
}
Answer: A
Q43. 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
Q44. You are writing a C# program that iterates through a collection such as arrays and lists. You need to make sure that you process each item in the collection once. You also need to ensure that your code is easy to read and debug. Which of the following C# statements provide the best solution for this requirement?
A. while
B. for
C. foreach
D. do-while
Answer: C
Q45. You need to gain a better understanding of the solution before writing the program. You decide to develop an algorithm that lists all necessary steps to perform an operation in the correct order. Any technique that you use should minimize complexity and ambiguity. Which of the following techniques should you use?
A. flowchart
B. decision table
C. C# program
D. A paragraph in English
Answer: A
Q46. You develop a new ASP.NET inventory application on the Northwind Web server. You deploy the files in the folder c:\WebInventory. The application should be available via the URL www.northwind.com/inventory. The URL www.northwind.com is already set up to point to the Northwind Web server. What should you do to make your inventory application available at the expected URL?
A. Change the name of the directory c:\WebInventory to c:\Inventory.
B. Create a virtual directory named Inventory and point it to c:\WebInventory.
C. Create a virtual directory named WebInventory and point it to c:\Inventory.
D. Move the directory c:\WebInventory to the c:\inetput\wwwroot directory.
Answer: B
Q47. You are developing code for a method that calculates the discount for the items sold. You name the method CalculateDiscount. The method defines a variable, percentValue of the type double. You need to make sure that percentValue is accessible only within the CalculateDiscount method. What access modifier should you use when defining the percentValue variable?
A. private
B. protected
C. internal
D. public
Answer: A
Q48. 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: B
Q49. You are developing an application that needs to copy data from a SQL Server table to a DataSet. Which of the following methods should you use to copy the data?
A. Fill
B. FillSchema
C. GetFillParameters
D. Update
Answer: A
Q50. You are developing a Windows application. The user needs to work with multiple windows of the application at the same time and needs a simplified interface. The application needs to be compatible with different display configurations, such as multiple monitors. Which of the following interfaces should you create?
A. Create a Multiple Document Interface (MDI) Application. Open a single instance of the application.
B. Create a Single Document Interface (SDI) Application. Open a single instance of the application.
C. Create a Single Document Interface (SDI) Application. Open multiple instances of the application.
D. Create a Multiple Document Interface (MDI) Application. Open multiple instances of the application.
Answer: C