1. Presentation Topic :
Internationalizationand Globalization
Members List :
Name Roll No
Muhammad Ali BCSF13M008
Mansoor Riaz BCSF13M033
Misbah Habib BCSF13M047
Presentation Video Link :
https://youtu.be/F9M_kK_GH68
2. MCQS :
1. Internationalization involves :
a) Globalization and Localization
b) Culture and UICulture
c) Netural culture
d) Both a&b
2. Every thread in .NET has _______________ objects :
a) Netural Culture and Specific Culture
b) Globalization and Localization
c) CurrentCulture and CurrentUICulture
d) None of these
3. Internationalization is often abbreviated as :
a) G11N
b) L10N
c) I18N
d) None of these
4. The UICulture determines which resources are to be loaded for the page by :
a) Language
b) Region
c) Culture
d) ResourceManager
5. The format for the culture name is :
a) <languagecode2><country/regioncode2>
b) <country/regioncode2>
c) <languagecode2>
d) <languagecode2> - <country/regioncode2>
3. 6. The process of making an application that supports different languages and regions
is known as:
a) Internationalization
b) Globalization
c) Localization
d) Locale
7. Specific Culture has :
a) specified language but not a region
b) different languages and regions
c) specified region but not a language
d) specified language and region
8. On each HTTP request, there is a header field called _________ determines which
languages the user’s browser supports:
a) Accept-Language
b) Locale
c) ResourceManager
d) ResourceString
9. In Accept-Language: en-us,en;q=0.5 , q indicates :
a) user’s preference for that culture
b) user’s preference for that region
c) user’s preference for that language
d) Both b&c
10. ________________ can be used to add some validation logic to our model :
a) Data Annotation Attributes
b) Resource Manager
c) Both a&b
d) None of these
4. 11. ________________ indicates the type of resource to look up the error message :
a) ErrorMessageResourceName
b) Resource String
c) Resource Manager
d) ErrorMessageResourceType
12. To access resource's access modifier property from other projects make it :
a) Private
b) Protected
c) Public
d) Both b&c
13. We will build an ASP.NET MVC 5 web application which features it contains :
a) It can display contents in different languages
b) It autodetects the language from the user's browser
c) It allows the user to override the language of their browser
d) All of the above
14. To read culture cookie from request we use :
a) HttpCookie cultureCookie = Request.Cookies["_culture"]
b) GetDefaultCulture()
c) CultureHelper.GetImplementedCulture(cultureName)
d) Request.UserLanguages
15. public static bool IsRighToLeft()
{
return
System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft;
}
a) Returns true if the language is a right-to-left language
b) Returns true if the language is a left-to-right language
c) Returns false if the language is a right-to-left language
d) Invalid
16. HTML supports :
a) right-to-left languages
5. b) left-to-right languages
c) Both a&b
d) None of these
17. To Support Different Languages in ASP.NET MVC :
a) use resource strings in all our site views
b) use different set of views for every language and locale
c) make separate projects
d) Both a&b
18. To avoid typing namespace in each file you need to add it in :
a) Web.config
b) App.congif
c) Program.cs
d) _Layout.cshtml
19. ErrorMessageResourceName indicates :
a) resource name to lookup the error message
b) resource type to lookup the error message
c) resource stringto lookup the error message
d) None of these
20. en-US shows :
a) Language is Spanish and region is United Kingdom
b) Language is English and region is United Kingdom
c) Language is English and region is United Kingdom
d) Language is English and region is United States
21. A culture that has a specified language but not a region is :
a) Specific culture
b) Neutral culture
c) Locale
d) Culture
6. 22. Why cookies are preferable instead of session :
a) They are lightweight
b) They do not take any type of space on server side
c) Both a&b
d) None of these
23. ______________ is same as culture :
a) Locale
b) Specific Culture
c) Netural Culture
d) Region
24. The process of customizing an application for a given language and region :
a) Internationalization
b) Localization
c) Globalization
d) None of these
25. <country/regioncode2> in format for the culture name shows :
a) Language code
b) subculture code
c) Both a&b
d) None of these
26. We need to reference "Resources" project from our web application, so that we can
read the ___________ from our web site.
a) Resource Strings
b) Parameters
c) Both a&b
d) None of these
27. If we apply [Required] data annotation on age this shows :
a) Age is compulsory
b) Age is not compulsory
c) Age Length
d) None of these
28. If we apply [StringLength(50)] data annotation on name this shows :
7. a) Name must be less than 50 characters
b) Name must be Greater than 50 characters
c) Name must contain 50 characters
d) None of these
29. If we apply [Range(10, 130)] data annotation on age this shows :
a) Age must be between 10 and 130
b) Age must be Greater than 130
c) Age cannot be in range of 10 and 130
d) None of these
30. To valide Email which attribute of data annotation is used:
a) Range
b) Required
c) Regular Expression
d) StringLength