exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 56 discussion

Actual exam question from Microsoft's 70-486
Question #: 56
Topic #: 1
[All 70-486 Questions]

You are designing a localized ASP.NET MVC online shopping application that will be deployed to customers in the United States, China, France, and Brazil. The application must support multiple cultures so that content in the appropriate language is available in each area.
You need to ensure that the content can be viewed in several languages.
How should you implement this feature?

  • A. Use a resource (.resx) file to provide translations.
  • B. Use Systems.Collections.Generics.Dictionary to store alternative translations.
  • C. Ensure that all strings are marked internal to avoid conflict with internal literals.
  • D. Include language-specific content in the assembly manifest and use .NET culture libraries.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
A resource file is an XML file that contains the strings that you want to translate into different languages or paths to images. The resource file contains key/value pairs. Each pair is an individual resource. Key names are not case sensitive. For example, a resource file might contain a resource with the key Button1 and the value Submit.
You create a separate resource file for each language (for example, English and French) or for a language and culture (for example English [U.K.], English [U.S.]).
Each localized resource file has the same key/value pairs; the only difference is that a localized resource file can contain fewer resources than the default resource file. The built-in language fallback process then handles loading the neutral or default resource.
References: ASP.NET Web Page Resources Overview
https://docs.microsoft.com/en-us/previous-versions/ms227427(v=vs.140)

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rortegax2
4 years, 5 months ago
It should say "resources file(s)" (plural)
upvoted 3 times
...
arohh
4 years, 7 months ago
Answer is: resources file
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...