1. Question: You are developing an application for a client residing in Hong Kong. You need to display
    negative currency values by using a minus sign. Which code segment should you use? -(VB.NET)

    A
    Dim culture As NumberFormatInfo = New CultureInfo("zh-HK").NumberFormat
    culture.NumberNegativePattern = 1
    Return numberToPrint.ToString("C", culture)

    B
    Dim culture As NumberFormatInfo = New CultureInfo("zh-HK").NumberFormat
    culture.CurrencyNegativePattern = 1
    Return numberToPrint.ToString("C", culture)

    C
    Dim culture As New CultureInfo("zh-HK")
    Return numberToPrint.ToString("()", culture)

    D
    Dim culture As New CultureInfo("zh-HK")
    Return numberToPrint.ToString("C", culture)

    Note: Not available
    1. Report
  2. Question: You create an application that stores information about your customers who reside in
    various regions. You are developing internal utilities for this application. You need to gather regional
    information about your customers in Canada. Which code segment should you use? -(VB.NET)

    A
    For Each culture As CultureInfo In CultureInfo.GetCultures(CultureTypes.SpecificCultures)
    ' Output the region information...
    Next

    B
    Dim cultureInfo As New CultureInfo("CA")
    ' Output the region information...

    C
    Dim regionInfo As New RegionInfo("CA")
    ' Output the region information...

    D
    Dim regionInfo As New RegionInfo("")
    If regionInfo.Name = "CA" Then
    ' Output the region information...
    End If

    Note: Not available
    1. Report
  3. Question: You are developing a method that searches a string for a substring. The method will be
    localized to Italy. Your method accepts the following parameters: The string to be searched, which is
    named searchList The string for which to search, which is named searchValue You need to write the
    code. Which code segment should you use? -(VB.NET)

    A
    Return searchList.IndexOf(searchValue)

    B
    Dim comparer As CompareInfo = New CultureInfo("it-IT").CompareInfo
    Return comparer.Compare(searchList, searchlist, searchValue)

    C
    Dim comparer As Culture = New CultureInfo("it-IT")
    If searchList.IndexOf(searchValue) > 0 Then
    Return True
    Else
    Return False
    End If

    D
    Dim comparer As CompareInfo = New CultureInfo("it-IT").CompareInfo
    If comparer.IndexOf(searchList, searchValue) > 0 Then
    Return True
    Else
    Return False
    End If

    Note: Not available
    1. Report
  4. Question: You need to generate a report that lists language codes and region codes. Which code
    segment should you use? -(VB.NET)

    A
    For Each culture As CultureInfo In CultureInfo.GetCultures(CultureTypes.SpecificCultures)
    ' Output the culture information...
    Next

    B
    Dim culture As New CultureInfo("")
    Dim types As CultureType = culture.CultureTypes
    ' Output the culture information...

    C
    For Each culture As CultureInfo In CultureInfo.GetCultures(CultureTypes.NeutralCultures)
    ' Output the culture information...
    Next

    D
    For Each culture As CultureInfo In CultureInfo.GetCultures(CultureTypes.ReplacementCultures)
    ' Output the culture information...
    Next

    Note: Not available
    1. Report
  5. Question: You are developing a fiscal report for a customer. Your customer has a main office in the
    United States and a satellite office in Mexico. You need to ensure that when users in the satellite office
    generate the report, the current date is displayed in Mexican Spanish format. Which code segment should
    you use? -(VB.NET)

    A
    Dim dtfi As DateTimeFormatInfo = New CultureInfo("es-MX", False).DateTimeFormat
    Dim dt As New DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day)
    Dim dateString As String = dt.ToString(dtfi.LongDatePattern)

    B
    Dim cal As Calender = New CultureInfo("es-MX", False).Calender
    Dim dt As New DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day)
    Dim dateString As String = dt.ToString()

    C
    Dim dateString As String =
    DateTimeFormatInfo.CurrentInfo.GetMonthName(DateTime.Today.Month)

    D
    Dim dateString As String = DateTime.Today.Month.ToString("es-MX")

    Note: Not available
    1. Report
  6. Question: You are developing a .NET Framework 2.0 Windows Forms application on Certkiller -
    WS554. The Windows Forms application will be used by regional offices of Certkiller .com in various
    countries. You are required to customize the application so that the language, calendar and cultural
    conventions are changed based on the user\'s operating system settings. You additionally are required to
    identify the .Net Framework class that should be used for this requirement. What should you do? -(VB.NET)

    A
    The CultureInfo class should be used

    B
    The TextInfo class should be used

    C
    The DateTimeFormtaInfo should be used

    D
    The CharUnicodeInfo should be used

    E
    The RegionInfo should be used

    Note: Not available
    1. Report
  7. Question: You are developing a .NET Framework 2.0 Windows Forms application on Certkiller -
    WS554. The application must provide support for multiple languages and regional differences. You are
    required to define a custom culture based on an existing culture and region. An administrative user will
    install the custom culture on the end user\'s computer prior to the applications deployment and you are
    required to select which class to use. What should you do? -(VB.NET)

    A
    The CultureAndRegionInfoBuilder class should be used

    B
    The CustomAttributeBuilder class should be used

    C
    The RegioInfo class should be used

    D
    The CultureInfo class should be used

    Note: Not available
    1. Report
  8. Question: You need to provide locale-specific services to employees with the application. You must
    additionally ensure that you use a unique country identifier that can be used as a key to access a
    database record that contains specific information about a country whilst you use the minimum storage
    for storing the key. What should you do? -(VB.NET)

    A
    CultureInfo.Name should be used as an identifier for a country

    B
    CultureInfo.GetHashCode should be used as an identifier for a country

    C
    RegionInfo.GetHashCode should be used as an identifier for a country

    D
    RegionInfo.Name should be used as an identifier for a country

    Note: Not available
    1. Report
  9. Question: You create the following variable in your code:
    Dim dateValue As DateTime
    You additionally write code to store time in the local time to the dateValue variable. You are required to
    serialize the value of the dateValue variable, if you serialize the DateTime object in one time zone and
    deserialized in a different time zone, the local time represented as a result should be automatically
    adjusted to the second time zone. You are to decide which expression to use. What should you do? -(VB.NET)

    A
    The dateValue.ToString("yyyy-MM-ddTHH:mm:ss.fffffff",CultureInfo.InvariantCulture)

    B
    The dateValue.ToBinary() expression should be used

    C
    The dateValue.Kind expression should be used

    D
    The dateValue.Ticks expression should be used

    Note: Not available
    1. Report
  10. Question: You are developing a .NET Framework 2.0 Windows Forms application that will be used
    by several Certkiller .com employees in several countries on a workstation used as collateral. The
    application is required to fully support customization of the user interface based on the user's preferences
    like the language currency and date and time formats. You are required to write code that will compare
    the name of two employees which are stored in variables named employee1 and employee2. You are
    required to ensure correct comparisons whilst taking care of the regional settings selected. What should
    you do? -(VB.NET)

    A
    The String.Compare(Fileemployee1, Fileemployee2, true,CultureInfo.CurrentCulture) segment
    should be used

    B
    The String.Compare(Fileemployee1, Fileemployee2, true,CultureInfo.InvariantCulture) segment
    should be used

    C
    The String.Compare(Fileemployee1, Fileemployee2, true,CultureInfo.InstalledUICulture) segment
    should be used

    D
    The String.Compare(Fileemployee1, Fileemployee2, true,CultureInfo.CurrentUICulture) segment
    should be used

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd