LWC Basics Quiz – Test Your Lightning Web Components Knowledge

SF Quiz

Lightning Web Components Quiz

10 quick questions to test your LWC fundamentals. Click an answer and see immediately if you got it right — your final score shows up at the end.

Question 1 of 10
Which decorator is used to expose a public property in LWC?
Question 2 of 10
Which decorator is used to call an Apex method or get Salesforce data reactively?
Question 3 of 10
What base class does every LWC component extend?
Question 4 of 10
Which file defines the metadata (API version, targets) for an LWC component?
Question 5 of 10
Which lifecycle hook runs when a component is inserted into the DOM?
Question 6 of 10
How do you fire a custom event from a child to a parent component?
Question 7 of 10
Which module do you import to show a toast message in LWC?
Question 8 of 10
Which decorator makes a property reactive so changes trigger a re-render?
Question 9 of 10
Which tag is used to conditionally render markup in LWC templates?
Question 10 of 10
What is the correct way to import a static resource in LWC?

Leave a Reply