1. Which decorator is used to expose a public property in an LWC?

A. @wire

B. @track

C. @api

Correct Answer: C. @api

2. What is the purpose of the lightning/uiRecordApi module in LWC?

A. To perform CRUD operations on records

B. To handle events between components

C. To manage the component lifecycle

Correct Answer: A. To perform CRUD operations on records

3. How can you conditionally apply a CSS class in LWC based on a property value?

A. Using the class attribute in the HTML template

B. Using the classList property in the JavaScript controller

C. Both A and B

Correct Answer: C. Both A and B

4. What is the recommended approach for implementing localization in LWC?

A. Using custom JavaScript functions for translation

B. Utilizing the lightning/i18n module

C. Manually managing translations in the HTML template

Correct Answer: B. Utilizing the lightning/i18n module

5. How can you navigate to another page in Salesforce Lightning Experience from an LWC?

A. Using the window.location.href property

B. Using the lightning/navigation module

C. Navigating is not possible from an LWC.

Correct Answer: B. Using the lightning/navigation module

6. In LWC, what directive is used for conditional rendering in the HTML template?

A. <aura:renderIf>

B. <template if:true>

C. <c:if>

Correct Answer: B. <template if:true>

7. How does event bubbling work in LWC?

A. Events always bubble up from child to parent components.

B. Events always bubble down from parent to child components.

C. Event bubbling is not a concept in LWC.

Correct Answer: C. Event bubbling is not a concept in LWC.