
Dev 1 full dump
Quiz
•
Business
•
1st Grade
•
Practice Problem
•
Medium
Megan Santos
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
10 questions
Credit 101
Quiz
•
1st - 12th Grade
11 questions
Oryantasyon
Quiz
•
1st - 3rd Grade
10 questions
Component 3 - Promotion Quiz (KO1/Block 1)
Quiz
•
1st - 12th Grade
10 questions
Costs and Revenues
Quiz
•
1st - 3rd Grade
15 questions
APPLIED BUSINESS TOOLS GAME QUIZ
Quiz
•
1st - 3rd Grade
10 questions
Entrepreneurship and Innovation
Quiz
•
1st Grade
10 questions
Level of Involvement in Trade
Quiz
•
1st - 10th Grade
12 questions
Parts of the Word Screen and PDF
Quiz
•
KG - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Business
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
1st - 3rd Grade
10 questions
Christmas Characters
Quiz
•
KG - 3rd Grade
10 questions
Exploring Christmas Math Word Problems
Interactive video
•
1st - 5th Grade
16 questions
Christmas 1st grade
Quiz
•
1st Grade
