102-500 · Question #108
Which of the following environment variables can be defined in locale.conf? (Choose two.)
The correct answer is A. LC_ALL E. LC_TIME. LC_ALL and LC_TIME are both valid locale categories recognized by the POSIX locale system and can be set in /etc/locale.conf (or ~/.config/locale.conf). LC_ALL is a powerful override that forces all locale categories to a single value, and LC_TIME controls date and time…
Question
Options
- ALC_ALL
- BLC_USERNAME
- CLC_UTF8
- DLC_GEOGRAPHY
- ELC_TIME
How the community answered
(23 responses)- A74% (17)
- B9% (2)
- C4% (1)
- D13% (3)
Explanation
LC_ALL and LC_TIME are both valid locale categories recognized by the POSIX locale system and can be set in /etc/locale.conf (or ~/.config/locale.conf). LC_ALL is a powerful override that forces all locale categories to a single value, and LC_TIME controls date and time formatting - both are standard, documented locale environment variables used by the C library and systemd's locale system.
The three distractors are simply invented names: LC_USERNAME (B) is not a locale category - usernames aren't a formatting concern; LC_UTF8 (C) doesn't exist - character encoding is controlled via the locale name itself (e.g., en_US.UTF-8) in variables like LANG or LC_CTYPE, not a separate variable; LC_GEOGRAPHY (D) is also fabricated - no such standard category exists.
Memory tip: Every real LC_* variable maps to a concrete formatting category - time, numbers, monetary values, messages, collation, paper size, etc. If the suffix sounds like a user attribute (USERNAME) or a technology (UTF8) or a vague concept (GEOGRAPHY) rather than a formatting domain, it's fake.
Topics
Community Discussion
No community discussion yet for this question.