There are two before save triggers defined for the Contact object, which one of them runs first?

Dev 1 full dump

Quiz
•
Megan Santos
•
Business
•
1st Grade
•
1 plays
•
Medium
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The trigger which was created first
The trigger which was created last
Both execute together
The order is random
Answer explanation
When multiple triggers are defined on an object, the order in which they are executed cannot be guaranteed or relied upon. Instead, it is a best
practice to ensure only a single trigger is defined on an object which hands off to other classes to perform business logic.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
As a developer, you wish to utilise scratch orgs to streamline the development process within your team. What are the requirements to do this?
Enable Dev Hub
Have a user with permissions to create Scratch Orgs
Have the Salesforce CLI setup
Have the Salesforce CLI setup
All of the options
Answer explanation
To utilise scratch orgs, the Dev Hub must be enabled in an org to allow scratch orgs to be created. Each developer wishing to create scratch orgs
from that Dev Hub must have a user with the correct permissions to manage scratch orgs and access the scratch org objects in that org. Using
the Salesforce CLI this user can login into the Dev Hub and be used to request the creation of scratch orgs.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can data for a record be easily accessed in Lightning Components?
Utilize the standard Lightning Component Controller
Write an @AuraEnabled Apex methods to return the data
Utilize the Lightning Data Service
Use fetch requests within the component to call the Salesforce APIs
Answer explanation
When building components that work on individual records, the Lightning Data Service provides a performant and cached mechanism for loading
and updating record data that gets propagated throughout all components utilising the service.
This offers advantages over performing Apex calls to achieve simple record data since it increases performance and allows changes in other
areas of the UI (for example for the standard record details component) to propagate to other components.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A custom field on Opportunity is assigned the number data type, with 18 digits and 0 decimal places. Which primitive data type would this be
assigned in Apex?
Decimal
Long
Double
Integer
Answer explanation
All data stored within a number field (or number returning formula) is represented as a Double when accessed within Apex.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following snippets can be used to obtain the Stage picklist values on the Opportunity object?
Opportunity.StageName.getDescribe().getPicklistValues();
Opportunity.StageName.getMetadata().getPicklistMetadata();
Opportunity.StageName.getDescribe().getPicklistDescribe ();
Opportunity.StageName.getDescribe().getPicklistOptions();
Answer explanation
To access field metadata within Apex we use the FieldDescribeResult for the field we are interested in, this can be accessed declaratively as in
the answer to this question, or programmatically as shown below.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements should be added to the following for loop to exit the loop – on line 10 – when a matching record is first found?
break;
exit;
continue;
goto start;
Answer explanation
To exit out of a for loop early we can use the “break” statement which stops any code after it, and any additional items which would have been
looped over from being run.
The “continue” statement is used when we wish to exit the current loop iteration early and progress onto the next one.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
An integration is to be built which inserts Leads into your company’s Salesforce instance in bulk from its website daily. Some of the records are
spam and do not contain valid field data. Which of the following statements would facilitate this?
insert leads false;
Database.insert(leads, false);
Database.insert(leads, true);
Database.insertPartial (leads, false);
None of the above
Answer explanation
When we wish to configure the DML operation, or handle failed records, we must use the Database class methods. When we specify false for the
allOrNone parameter, instead of an exception being thrown when any record encounters an error during save, a List<Database.SaveResult> is
returned instead of an exception being thrown.
Explore all questions with a free account
Similar Resources on Quizizz
12 questions
Basic Marketing practice chapter1234

Quiz
•
1st Grade
12 questions
financial accounting

Quiz
•
1st - 3rd Grade
16 questions
Chapter 5 - Financial investment

Quiz
•
1st - 3rd Grade
10 questions
GTS Workshop Showcase

Quiz
•
1st - 5th Grade
15 questions
Transaction Processing

Quiz
•
1st - 3rd Grade
10 questions
Konsep ilmu ekonomi

Quiz
•
1st Grade
10 questions
Entrepreneurship practice

Quiz
•
1st Grade
14 questions
Kuis Temu Outlet Mimika

Quiz
•
1st - 5th Grade
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Business
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
20 questions
Telling Time to the Hour and Half hour

Quiz
•
1st Grade
15 questions
spelling

Quiz
•
1st - 2nd Grade
12 questions
Pixar Movies!

Quiz
•
KG - 5th Grade
15 questions
goods and services

Quiz
•
1st Grade
10 questions
2D and 3D shapes

Quiz
•
1st Grade
15 questions
Addition and Subtraction

Quiz
•
1st Grade
20 questions
Summer

Quiz
•
KG - University