nerdexam
Salesforce

PDII · Question #368

PDII Question #368: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #368. The question stem and answer options stay visible for context.

Question

A developer is creating a Lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday. What should the developer do to ensure the calendar displays accurately for users in every locale?

Options

  • AUse UserInfo.getLocale() in the component.
  • BUse a custom metadata type to store key/value pairs.
  • CImport the @salesforce/i18n module and use the firstDayOfWeek internationalization property.
  • DQuery the FirstDayOfWeek field from the Locale for the current user.

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice