最新的Microsoft MTA Software Development Fundamentals - 98-361免費考試真題
You need to develop a C# program that exports the contents of the Customers table to an XML file.
The exported data must be in the following format:
- <Customer CustomerID="ALFKI" ContactName="Maria Anders" Phone="030-007-
4321" />
- <Customer CustomerID="ANATR" ContactName="Ana Trujillo" Phone="(5) 555-
4729" />
Which of the following code segments should you use to export the Customers table to the specified XML format?
The exported data must be in the following format:
- <Customer CustomerID="ALFKI" ContactName="Maria Anders" Phone="030-007-
4321" />
- <Customer CustomerID="ANATR" ContactName="Ana Trujillo" Phone="(5) 555-
4729" />
Which of the following code segments should you use to export the Customers table to the specified XML format?
正確答案: A
You are creating a variable for an application.
You need to store data that has the following characteristics in this variable:
- Consists of numbers and characters
- Includes numbers that have decimal points
Which data type should you use?
You need to store data that has the following characteristics in this variable:
- Consists of numbers and characters
- Includes numbers that have decimal points
Which data type should you use?
正確答案: D
說明:(僅 Fast2test 成員可見)
You are developing a C# program for a bike rental company.
Every night, your application needs to read data from a SQL Server 2000 database and write it to a flat file.
This flat file will be transferred to your supplier.
Which of the following classes shall you use to retrieve the data? Any solution that you suggest must have very little impact of the server while maximizing performance.
Every night, your application needs to read data from a SQL Server 2000 database and write it to a flat file.
This flat file will be transferred to your supplier.
Which of the following classes shall you use to retrieve the data? Any solution that you suggest must have very little impact of the server while maximizing performance.
正確答案: C
You are developing a new Windows service application.
The application contains three different Windows services.
Each service will have a different start type.
Which of the following classes will help you perform the installation tasks specific to each service?
You must suggest a solution that requires the least coding effort.
The application contains three different Windows services.
Each service will have a different start type.
Which of the following classes will help you perform the installation tasks specific to each service?
You must suggest a solution that requires the least coding effort.
正確答案: D
The purpose of the Catch section in an exception handler is to:
正確答案: B
You are assisting your colleague in solving a compiler error that his code is throwing.
Following is the problematic portion of his code:
try
{
bool success = ApplyPicardoRotation(100, 0);
// additional code lines here
}
catch(DivideByZeroException dbze)
{
//exception handling code
}
catch(NotFiniteNumberException nfne)
{
//exception handling code
}
catch(ArithmeticException ae)
{
//exception handling code
}
catch(OverflowException oe)
{
//exception handling code
}
To remove the compilation error, which of the following ways should you suggest to rearrange the code?
Following is the problematic portion of his code:
try
{
bool success = ApplyPicardoRotation(100, 0);
// additional code lines here
}
catch(DivideByZeroException dbze)
{
//exception handling code
}
catch(NotFiniteNumberException nfne)
{
//exception handling code
}
catch(ArithmeticException ae)
{
//exception handling code
}
catch(OverflowException oe)
{
//exception handling code
}
To remove the compilation error, which of the following ways should you suggest to rearrange the code?
正確答案: C
You are developing an ASP.NET Wep page that displays status of a shipment.
You need to write some code that will change the Web page's appearance and assign values to some controls.
Where should you put this code?
You need to write some code that will change the Web page's appearance and assign values to some controls.
Where should you put this code?
正確答案: A
You are developing a C# program that needs to perform 5 iterations.
You write the following code:
01: int count = 0;
02: while (count <= 5)
03: {
04: Console.WriteLine("The value of count = {0}", count);
05: count++;
06: }
When you run the program, you notice that the loop does not iterate five times.
What should you do to make sure that the loop is executed exactly five times?
You write the following code:
01: int count = 0;
02: while (count <= 5)
03: {
04: Console.WriteLine("The value of count = {0}", count);
05: count++;
06: }
When you run the program, you notice that the loop does not iterate five times.
What should you do to make sure that the loop is executed exactly five times?
正確答案: C
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?
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?
正確答案: C
This question requires that you evaluate the underlined text to determine if it is correct.
When creating a site to utilize message queuing, the IP address must be configured to MSMQ.
Select the correct answer if the underlined text does not make the statement correct.
Select "No change is needed'' if the underlined text makes the statement correct.
When creating a site to utilize message queuing, the IP address must be configured to MSMQ.
Select the correct answer if the underlined text does not make the statement correct.
Select "No change is needed'' if the underlined text makes the statement correct.
正確答案: A
說明:(僅 Fast2test 成員可見)