LWC Quiz – 10 Questions to Test Your Lightning Web Components Knowledge

LWC Basics Quiz

10 quick questions to test your Lightning Web Components (LWC) knowledge. Click an option to instantly see if you got it right — no submit button needed.

Score: 0 / 10
Question 1 of 10
Which decorator is used to expose a public property from an LWC component?

Question 2 of 10
Which decorator lets a component call an Apex method or receive reactive data from Salesforce?

Question 3 of 10
What base class does every Lightning Web Component extend?

Question 4 of 10
Which lifecycle hook fires when a component is inserted into the DOM?

Question 5 of 10
How does a child component communicate data up to its parent in LWC?

Question 6 of 10
In modern LWC (Spring ’20 and later), do you need @track on a simple primitive property (like a string or number) for the UI to update when it changes?

Question 7 of 10
Which module would you import to navigate to another page or record in LWC?

Question 8 of 10
What is the correct way to reference a static resource named “myLogo” in an LWC JS file?

Question 9 of 10
Which file extension holds the HTML markup for an LWC component’s template?

Question 10 of 10
Which CLI command is used to deploy LWC source metadata to an org?

Leave a Reply