Topcerts 70-401 Vce

TopCerts 70-401 formatted for VCE:

hxxp://www.examcollection.com/microsoft/Microsoft.TopCerts.70-401.v2.73.by.eim23x.100q.vce

QUESTION 1:
As a software developer at Certkiller you are creating an ASP.NET application that will display facts
about the solar system. This application will support localization for users from France, Germany, Japan,
and the United States. To see information about a particular planet, the user will select the planet from a
drop-down list box on SolarSystem.aspx.
You want to display the planet names in the drop-down list box in the language appropriate to the
individual who is using the application.
What should you do?
A. Create a database table named Planets.
Create three column named PlanetID, LocaleID, and Description.
Use SqlCommand.ExecuteReader to query the table for the locale specified in the request.
Using the locale specified in the request, translate the values by using the TextInfo.OEMCodePage
property.
Populate the drop-down list box with the translated text.
B. Create a DataTable object named Planets.
Populate the Planets DataTable object by using string constants.
Using the locale specified in the request, translate the values by using a UnicodeEncoding object.
Bind the DataSource property of the drop-down list box to the DataTable object.
C. Create a database table named Planets.
Create two columns named PlanetID and Description
Use a SqlDataAdapter to load the planet information into a DataSet object.
Using the locale specified in the request, use the String format provider to translate the values.
Bind the DataSource property of the drop-down list box to the DataSet.DefaultView object.
D. Create string resources assemblies for each locale.
Using the locale specified in the request, use a ResourceManager to load the appropriate assembly.
Populate an array with the string values from the assembly.
Bind the DataSource property of the drop-down list box to the array.
Answer: D
Explanation: The ResourceManager class provides convenient access to culture-correct resources at run time.
Reference: .NET Framework Tutorials, ResourceManager

Donwload Free Certbible, The Most Realistic Practice Questions and Answers,Help You Pass any Exams

Actualtests.org - The Power of Knowing
QUESTION 2
You are creating an ASP.NET page that enables users to select a country and view information on tourist
attractions in that country. Users select a country from a list box named countryList. The list box
displays country names. The list box also contains hidden country codes.
Your code retrieves a cached DataTable object that contains tourist attraction descriptions and a
numeric country code named CountryID. The DataTable object is named attractionsTable.
You want to extract an array of DataRow objects from the DataTable object. You want to include tourist
attractions for only the selected country.
Which code segment should you use?
A. DataRow[] result = attractionsTable.Select(
“CountryID = ” + countryList.SelectedItem.Text);
B. DataRow[] result = attractionsTable.Select(
“CountryID = ” + countryList.SelectedItem.Value);
C. DataRow result =
attractionsTable.Rows.Find(
“CountryID = ” + countryList.SelectedItem.Value);
D. DataRow result =
attractionsTable.Rows.Find(
countryList.SelectedItem.Value);
Answer: B
Explanation: The DataTable.Select method gets an array of all DataRow objects that match the filter criteria in
order of primary key (or lacking one, order of addition.). The filter will compare CountryID values. We should
use Country codes and not country names. We should therefore use the Value of the selected item, not the Text.
Reference: .NET Framework Class Library, DataTable.Select Method (String) [C#]
.NET Framework Class Library, ListControl.SelectedItem Property [C#]
Incorrect Answers
A: The ListBox.TextBox property gets or searches for the text of the currently selected item in the ListBox.
However, this would retrieve names of countries, but the filter use comparison to a CountryID column.
We must use the country code, not the country name.
C, D: The DataRowCollection.Find method is not appropriate in this scenario. It retrieves only a single row,
not an array of rows.
QUESTION 3
You create an ASP.NET application to provide corporate news and information to Certkiller ’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?

Actualtests.org - The Power of Knowing
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.
Answer: A
Explanation: The culture attribute of the globalization element specifies the default culture for processing
incoming Web requests.
Reference: .NET Framework General Reference, Element
Incorrect Answers
B: The uiculture attribute of the globalization specifies the default culture for processing locale-dependent
resource searches. It does not apply in this scenario.
C, D: The UTF8Encoding Class encodes Unicode characters using UCS Transformation Format, 8-bit form
(UTF-8). This encoding supports all Unicode character values and surrogates. However, it does not help
in displaying data in New Zealand format.
Free download:pass4sure Microsoft 70-401
Free download:testking Microsoft 70-401

password:www.certbible.org

Bookmark and Share
certification braindumps

Type

Exam Bible New Questions & Answers

Latest Updated

Download link
Testking torrent All Certbible 's Exam Pack

597

1 days ago Available
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • blogmarks
  • De.lirio.us
  • IndiaGram
  • Reddit
  • e-mail
  • IndianPad
  • laaik.it
  • Yahoo! Bookmarks
  • Yigg

Realted Post

free it certification

Top Posts for Today

free braindumps

Visited 494 times, 2 so far today

About the Author

certificate has written 9258 stories on this site.

If you have any doubts about legality of content or you have another suspicions, feel free to contact us:CertGuard@gmail.com

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

Copyright © 2009 CertBible - IT certifications Training and Preparation Tests. All rights reserved.
Cisco microsoft Comptia CCNA CCIE MCSE Oracle