
Dev 1 full dump
Quiz
•
Business
•
1st Grade
•
Medium
Megan Santos
Used 1+ times
FREE Resource
Enhance your content
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
There are two before save triggers defined for the Contact object, which one of them runs first?
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.
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
13 questions
Business Accounting - Week 10
Quiz
•
1st - 5th Grade
12 questions
clip test
Quiz
•
1st Grade
10 questions
MVS Test
Quiz
•
1st Grade
10 questions
Management Chapter 4
Quiz
•
1st - 3rd Grade
14 questions
Dev 3/21
Quiz
•
1st Grade
10 questions
Basic Accounting
Quiz
•
1st - 10th Grade
15 questions
QUIZ 4 : ACCOUNTING CYCLE
Quiz
•
1st Grade - University
13 questions
QUIZ 3 : ACCOUNTING FOR RECEIVABLES
Quiz
•
1st Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Business
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
18 questions
D189 1st Grade OG 1c Concept 37-38
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
5 questions
Sense and Response
Quiz
•
1st Grade