Last Updated on April 6, 2022 by Admin 3

Ch8 Localization Exam

  1. Which of the following parameters is not referred by locale?

    • Digital signatures 
    • Numeric representation 
    • Monetary symbols 
    • Character classification
  2. For locally run programs, the locale information is provided by system variables.

    True or False?

    • True 
    • False
  3. How is the locale set for web applications?

    • Obtained from the user’s .profile 
    • Obtained from the user’s environment variables 
    • Obtained from the web browser 
    • Obtained from the web server
  4. What is the format used for naming a locale definition file?

    • language[.codeset][_territory][@modifiers]
    • language[_territory][.codeset][@modifiers] 
    • language[_region][.codeset][@modifiers] 
    • language[_countrycode][.codeset][@modifiers]
  5. Which of the following is not seen in the output of the locale command?

    • LC_COLLATE 
    • LC_CTYPE 
    • LC_PRINT 
    • LC_MESSAGES
  6. Which command is used to list all available locales on the system?

    • locale -a 
    • locale -l 
    • locale -A 
    • locale
  7. Setting which of the following environment variables will change the language and encoding for the current login session to French?

    • LC_CTYPE=fr_FR.iso-8859-15 
    • LC_NAME=fr_FR.iso-8859-15 
    • LC_MESSAGES=fr_FR.iso-8859-15 
    • LANG=fr_FR.iso-8859-15
  8. Which file is used to set the user’s locale permanently?

    • ~/.profile 
    • ~/.forward 
    • ~/.lang 
    • ~/.login
  9. What is the behavior of setting C locale?

    • Strings are displayed as per the user’s LANG setting 
    • Strings are displayed as written in the initial code 
    • Strings are always displayed in UTF-8 
    • Strings are translated and then displayed
  10. Which environment variable is used to specify the directories for message translation catalogs?

    • PATH 
    • LOCALEPATH 
    • NLSPATH 
    • NLPATH
  11. Linux systems keep time in ____.

    • GMT 
    • UTC 
    • IST 
    • UST
  12. UTC is not subjected to daylight saving time.

    True or False?

    • True 
    • False
  13. Which environment variable is used to find the time zone?

    • TIME
    • TZONE 
    • SYSTIME 
    • TZ
  14. The /etc/localtime file is a flat file containing plain text that is used to configure the system wide time zone.

    True or False?

    • True 
    • False
  15. Which file is used to indicate the current time zone on Red Hat systems?

    • /etc/sysconfig/clock 
    • /etc/sysconfig/tz 
    • /etc/sysconfig/time 
    • /etc/sysconfig/time
  16. Which utility is used to determine the value of the TZ variable?

    • tzset 
    • tzselect 
    • tzmod 
    • zchange
  17. Which command is used to verify time zone changes?

    • systime
    • date
    • sysdate
    • nls
  18. Which of the following is not a function of the date command?

    • Sorting files by date 
    • Displaying Universal time 
    • Reading date patterns from a file 
    • Displaying past dates
  19. Character encoding is the process of maintaining the mapping between the character and its ______ value.

    • Internal 
    • Encoded 
    • Decoded 
    • Mapped
  20. Which command is used to find the current character mapping in Linux?

    • locale charmap
    • locale -c
    • locale --charmap
    • locale -C
  21. Which characters are not supported by ASCII?

    • Numbers 0 – 9 
    • Mathematical symbols 
    • Punctuation symbols 
    • English letters
  22. ASCII is not a subset of UTF-8.

    True or False?

    • True 
    • False
  23. Which of the following is not a capability of Unicode characters?

    • Supports mathematical and technical symbols 
    • Uses separate language packs for each language 
    • User applications can display Unicode files 
    • Can be used in file names
  24. What does UTF-8 mean?

    • UCS Transcoding Format 
    • UCS Transformation Format 
    • UCS Technology Format 
    • UCS Transfer Format
  25. UTF-8 is a fixed-width encoding scheme that can represent every character in the Unicode character set.

    True or False?

    • True 
    • False
  26. How many bits character encoding is supported by ISO?

    • 16-bit
    • 32-bit 
    • 4-bit 
    • 8-bit
  27. Which is the most commonly used character encoding for the Internet?

    • UTF-16 
    • UTF-8 
    • ISO 
    • ASCII
  28. Which API is used for converting one character encoding to another?

    • rconv
    • fconv
    • iconv
    • pconv
  29. Which of the following can be used to convert an older ASCII encoded file to UTF-8 encoding?

    • sed
    • iconv
    • locale
    • awk
  30. The ______ mapping method is supported by Unicode.

    • Universal Transformation Set (UTS) 
    • Universal Formatting Set 
    • Universal Locale Set (ULS) 
    • Universal Character Set (UCS)