MCSD.NET - 70-315 Exam Question: Download MCSD.NET - 70-315 Exam PDF

Suppose You are creating an ASP.NET page for XYZ. The page uses string concatenation to gather data
from multiple e-mail messages and format the data for display on the page.
You want to ensure that the page displays as quickly as possible.
What should you do?
A. Write code that uses the Append method of the StringBuilder object.
B. Write code that uses the Substring method of the String object.
C. Write code that uses the Concat method of the String object.
D. Write code that uses the plus-sign (+) operator to concatenate the strings.

Tweet Share WhatsApp

Answer:

A. Write code that uses the Append method of the StringBuilder object.

Download MCSD.NET - 70-315 Exam PDF Read All 16 MCSD.NET - 70-315 Exam Questions
Previous QuestionNext Question
Suppose You are creating an ASP.NET page for selling movie tickets. Users select a region, and then they
select from a list of cities in that region. The site displays the names and locations of movie
theaters in the city selected by the user.
Your company, XYZ Brothers, maintains a list of theaters in a database table that includes the
city, name, and street address of each theater. You want to minimize the time required to retrieve
and display the list of theater names after a user selects the region and city.
What should you do?
A. Modify the connection string to add the packet size property and set its values to 8192.
B. Add the following directive to the page:
OutputCache VaryByParam=?city?
C. Add the following directive to the page:
OutputCache VaryByControl=?region;city?
D. Modify the connection string to keep your database?s connection pool as small as possible.
Suppose You create an ASP.NET application to provide corporate news and information to XYZ?s
employees. The application is used by employees in New Zealand.
Default.aspx has a Web Form label control named currentDateLabel. The Page.Load event
handler for Default.aspx included the following line of code:
currentDateLabel.Text = DateTime.Now.ToString(?D?)
You need to ensure that the data is displayed correctly for employees in New Zealand. What
should you do?
A. In the Web.config file for the application, set the culture attribute of the globalization element to
en-NZ.
B. In the Web.config file for the application, set the uiCulture attribute of the globalization element
to en-NZ.
C. In Visual Studio .NET, set the responseEncoding attribute in the page directive for
Default.aspx to UTF-8.
D. In Visual Studio .NET, save the Default.aspx page for both versions of the application by
selecting Advanced Save Options from the File menu and selecting UTF-8.