Salesforce Interview Questions & Answers Book is now available!

Grab Now

LWC

A few MCQ's on LWC

Here are a few MCQ's on LWC that might be helpful.

By Teja, ex-Salesforce engineer · Updated January 26, 2021 · 1 min read

Here are a few MCQ's on LWC that you might find helpful!

What’s the annotation used to invoke an Apex method imperatively from LWC?

  1. @future
  2. @isTest
  3. @AuraEnabled
  4. @cacheable

What’s the annotation used to wire an Apex method to a property or function inLWC?

  1. @future
  2. @AuraEnabled(cacheable=true)
  3. @AuraEnabled

Can we have a css file in the LWC resource bundle?

  1. Yes
  2. No

Can I import styles from another component into my component using import statement?

  1. Yes
  2. No.

What are the maximum no of components that we can include in an LWC

  1. 9
  2. 25
  3. 100
  4. No limit

Learn it by building it

Every course, every code repository, the discussion group and certificates of completion — one subscription.

Keep me in the loop!

Email me when a new episode is published (promise, I will not spam you)

You're signing up to receive emails from Salesforce Casts