Implementing Globalization, Drawing, and Text Manipulation Functionality in a .NET Framework Application

These questions are derived from the Self Test Software Practice Test for Microsoft exam #70-536CSHP – TS: Microsoft .NET Framework 2.0 – Application Development Foundation (C#.NET)


Objective: Implementing Globalization, Drawing, and Text Manipulation Functionality in a .NET Framework Application
SubObjective: Format data based on culture information (Refer System.Globalization namespace)


Single Answer, Multiple Choice


You are an application developer for a company. You have created an application used by branches of your company in different geographical locations. Your application offers localization services to various cultures and regions of the world.

You receive a request from a network administrator in Ireland to confirm the regional settings available in Microsoft .NET 2.0. The administrator needs your application to display this information on the command line.

Which code should you use to display regional settings in Ireland?



  1. RegionData regIreland = new RegionData(” Ireland”);
    Console.WriteLine(“DisplayName: ” + regIreland.DisplayName);
    Console.WriteLine(“ThreeLetterWindowsRegionName: ” +
      regIreland.ThreeLetterWindowsRegionName);
    Console.WriteLine(“IsMetric: ” + regIreland.IsMetric);
    Console.WriteLine(“CurrencySymbol: ” + regIreland.CurrencySymbol);
    Console.WriteLine( “ISOCurrencySymbol: ” + regIreland.ISOCurrencySymbol );

  2. RegionData regIreland = new RegionData(“IE”);
    Console.WriteLine(“DisplayName: ” + regIreland.DisplayName);
    Console.WriteLine(“ThreeLetterWindowsRegionName: ” +
      regIreland.ThreeLetterWindowsRegionName);
    Console.WriteLine(“IsMetric: ” + regIreland.IsMetric);
    Console.WriteLine(“CurrencySymbol: ” + regIreland.CurrencySymbol);
    Console.WriteLine( “ISOCurrencySymbol: ” + regIreland.ISOCurrencySymbol );

  3. RegionInfo regIreland = new RegionInfo(” Ireland”);
    Console.WriteLine(“DisplayName: ” + regIreland.DisplayName);
    Console.WriteLine(“ThreeLetterWindowsRegionName: ” +
      regIreland.ThreeLetterWindowsRegionName);
    Console.WriteLine(“IsMetric: ” + regIreland.IsMetric);
    Console.WriteLine(“CurrencySymbol: ” + regIreland.CurrencySymbol);
    Console.WriteLine( “ISOCurrencySymbol: ” + regIreland.ISOCurrencySymbol );

  4. RegionInfo regIreland = new RegionInfo(“IE”);
    Console.WriteLine(“DisplayName: ” + regIreland.DisplayName);
    Console.WriteLine(“ThreeLetterWindowsRegionName: ” +
      regIreland.ThreeLetterWindowsRegionName);
    Console.WriteLine(“IsMetric: ” + regIreland.IsMetric);
    Console.WriteLine(“CurrencySymbol:…

cmadmin

ABOUT THE AUTHOR

Posted in Uncategorized|

Comment:

Powered by WebDesk