
LWC Sessions Quiz 3
Authored by M Salman
Professional Development
1st Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How you write Expression in LWC HTML?
LWC:If="{propertyName}"
LWC:If={propertyName}
LWC:If={!propertyName}
LWC:If="{!propertyName}"
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What are the Files we can have in LWC Folder (multiple answers)
Template
CSS
Meta File
JavaScript
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In LWC, the easiest way to work with salesforce data is to use ____?
Which is built on lightning data service.
Base Lightning Component
Apex
API callouts
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Import Apex Method in LWC: Is the below syntax Correct?
import apexMethodName from '@salesforce/apex/Classname.apexMethodReference';
YES
NO
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To expose an Apex method to a Lightning web component,
the method must be static and either global or public. And method must be annotate with?
@EnableAura
@AuraEnable
@LWCEnabled
@AuraEnabled
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To access object and field API names, use an import statement.
All object and field imports come from
@salesforce/schema
@salesforce/Apex
lightning/schema
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
To trigger a toast from a Lightning web component, in the component’s JavaScript class,
import {?????} from 'lightning/platformShowToastEvent';
getRecords
getRecord
ShowToastEvent
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?