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

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.

MCSD.NET - 70-315 Exam Interview Question
MCSD.NET - 70-315 Exam Interview Question

Answer:

A. In the Web.config file for the application, set the culture attribute of the globalization element to
en-NZ.

Download MCSD.NET - 70-315 Exam Interview Questions And Answers PDF

Previous QuestionNext Question
Suppose You are configuring your ASP.NET application XYZApp. XYZApp will be hosted on a Web server
that also runs other applications.
You want to prevent any changes to the configuration settings of your application after the
application is deployed.
What should you do?
A. In the Machine.config file, set the allowOverride attribute in the location element to False.
Make no other changes to the Machine.config file.
B. In the Web.config file, set the allowOverride attribute in the location element to False.
Make no other changes to the Web.config file.
C. In the Machine.config file, set the allowOverride attribute in the appSettings element to False.
Make no other changes to the Machine.config file.
D. In the Web.config file, set the allowOverride attribute in the appSettings element to False.
Make not other changes to the Web.config file.
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.