Topcerts 70-401 Vce
- Tuesday, April 1, 2008, 3:45
- Cert Tests
- 179 views
- Add a comment
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,
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
| certification braindumps |
|
Type |
Exam Bible | New Questions & Answers |
Latest Updated |
Download link |
![]() |
All Certbible 's Exam Pack |
597 |
1 days ago | Available |
Realted Post
Top Posts for Today
- Packet Tracer 5.0 Full Version (272 views)
- All crack Pass4sure Exams (171 views)
- Cisco Packet Tracer 5.0 Beta4 (166 views)
- Packet Tracer 5.1 for Windows with Cisco Official tutorials (154 views)
- Free Certification Bible Dumps and IT eBooks (138 views)
- How to Open VCE Files (133 views)
- SAP Ebooks Megapost - 2 - AF (117 views)
- Draft of New PMBOK - PMBOK 4th edition is now available (93 views)
- Java Scjp 1.5 Exam Dumps Excellent (89 views)
- New Pass4sure Cisco CCNA 640-802 V3.20 Dumps (85 views)
Visited 494 times, 2 so far today
About the Author
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!
















