PDI Training
Quiz
•
Other
•
KG - Professional Development
•
Medium
Genevieve Jawhar
Used 19+ times
FREE Resource
Enhance your content in a minute
120 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web Components to use.
What is the correct definition of a Lightning Web Component property that uses the getAccounts
method?
@AuraEnabled(getAccounts, (searchTerm: '$searchTerm' ))
accountList;
@wire(getAccounts, '$searchTerm')
accountList;
@AuraEnabled(getAccounts, '$searchTerm')
accountList;
@wire(getAccounts, ( searchTerm: '$searchTerm' ))
accountList;
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Application Events follow the tradition publish-subscribe model which method is used to fire an event?
fire()
registerEvent()
Emit()
FireEvent()
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Cloud Kick Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, body fat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the
consumer of the application when developing customizations outside the ISV's package namespace.
Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?
Declare the class and method using the global access modifier.
Declare the class as public and use the global access modifier on the method.
Declare the class and method using the public access modifier.
Declare the class as global and use the public access modifier on the method.
4.
MULTIPLE SELECT QUESTION
15 mins • 1 pt
A developer at Universal Containers is tasked with implementing a new salesforce application that will be maintained completely by their company’s salesforce administrator.
Which three options should be considered for building the business logic of the application?
Choose 3 answers.
Scheduled jobs
Process builder
Flow builder
Invocable actions
Validation Rules
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
A developer created a visualforce page and custom controller to display the account type field as shown below.
Custom Controller code:
public with sharing class customCtrlr{
private Account theAccount;
public String actType;
public customCtrlr() {
theAccount = [select id, type
from account
where id =: ApexPages.currentPage().getParameters().get('id);
actType = theAccount.Type;
}
}
Visualforce page snippet:
The Account Type is {!actType}
The value of the account type field is not being displayed correctly on the page.
Assuming the custom controller is properly referenced on the visual force page,
what should the developer do to correct the problem?
Add with sharing to the custom controller.
Convert theAccount.Type to a string.
Change theAccount attribute to public.
Add a getter method for the actType attribute.
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the length of the Apex transaction, while being able to share the variable's state between trigger executions.
Declare maxAttempts as a member variable on the trigger definition.
Declare maxAttempts as a variable on a helper class.
Declare maxAttempts as a constant using the static and final keywords.
Declare maxAttempts as a private static variable on a helper class.
7.
MULTIPLE SELECT QUESTION
15 mins • 1 pt
A developer has a single custom controller class that works with a visualforce wizard to support creating and editing multiple sObjects. The wizard accepts data from the user inputs, multiple visual force pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers.
String nextpage = controller.save().geturl();
ApexPages.currentPage().getParameters().put('input', 'TestValue');
Insert pageRef
Test.setCurrentPage(pageRef)
public ExtendedController(ApexPages.StandardController central){}
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
117 questions
Cuộc Đấu Tranh Bảo Vệ Tổ Quốc
Quiz
•
12th Grade - University
115 questions
Guess-the-Pokémon-Type Quiz [Gen 1-8]
Quiz
•
Professional Development
120 questions
ТЕХНОЛОГИЯ: БЕРІСТЕНОВ А.Т.
Quiz
•
University
125 questions
PJOK
Quiz
•
12th Grade
125 questions
FFA Tree ID
Quiz
•
KG - Professional Dev...
121 questions
EM 1-121
Quiz
•
University
116 questions
LATIHAN SOAL UP 2023
Quiz
•
KG - University
120 questions
cuối kì công nghệ 11
Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Other
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
