Salesforce Certified Platform Developer II — Question 164
When developing a Lightning web component, which setting displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tables-size and desktop-size screens?
Answer options
- A. Set size=“6” mobile-device-size=“12”
- B. Set size=“6” small-device-size=“12”
- C. Set size=“12” medium-device-size=“6”
- D. Set size=“12” tablet-device-size=“6”
Correct answer: C
Explanation
The correct answer is C because using size=“12” for medium devices and size=“6” for larger screens allows for a two-column layout on tablets and desktops while ensuring a single column on smaller devices. The other options either do not correctly specify the sizes for the intended device categories or do not achieve the desired layout configuration.