Why would a developer use Test. startTest( ) and Test.stopTest( ) ?

Repaso Dev

Quiz
•
Instructional Technology
•
1st - 3rd Grade
•
Hard
Omega Academy
Used 3+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To avoid Apex code coverage requirements for the code between these lines
To start and stop anonymous block execution when executing anonymous
To indicate test code so that it does not Impact Apex line count governor limits.
To create an additional set of governor limits during the execution of a single test class.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A developer uses a before insert trigger on the Lead object to fetch the Territory__c object, where the Territory__c.PostalCode__c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10,000 Lead records. The developer has the following code block:Line-01: for (Lead l : Trigger.new){Line-02: if (l.PostalCode != null) {Line-03: List terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c = :l.PostalCode];Line-04: if(terrList.size() > 0)Line-05: l.Territory__c = terrList[0].Id;Line-06: }Line-07: }Which line of code is causing the code block to fail?
Line-03: A SOQL query is located inside of the for loop code.
Line-01: Trigger:new is not valid in a before insert Trigger.
Line-02: A NullPointer exception is thrown if PostalCode is null.
Line-05: The Lead in a before insert trigger cannot be updated.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
Create a workflow rule with a field update.
Create a Lightning Component.
Create a Visualforce page.
Create a process with Process Builder.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.Which kind of relationship would a developer use to relate the Account to the Warehouse?
One -to -Many
Lookup
Master -Detail
Parent -Child
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is true for a partial sandbox that is not true for a full sandbox? (Choose 2)
More frequent refreshes.
Only Includes necessary metadata.
Use of change sets.
Does not include all data
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
When loading data into an organization, what can a developer do to match records to update existing records?Choose 2 answers
Match an external Id Text field to a column in the imported file.
Match the Id field to a column in the Imported file.
Match the Name field to a column in the imported file.
Match an auto -generated Number field to a column in the imported file.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting, that application cannot be modified to be resubmitted to a different job posting.What can the administrator do to associate an application with each job posting in the schema for the organization?
Create a lookup relationship on both objects to a junction object called Job Posting Applications.
Create a master-detail relationship in the Job Postings custom object to the Applications custom object.
Create a master-detail relationship in the Application custom object to the Job Postings custom object.
Create a lookup relationship in the Applications custom object to the Job Postings custom object.
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
If/Else Introduction (Logic)

Quiz
•
3rd - 8th Grade
10 questions
Coding - Sequence

Quiz
•
3rd - 5th Grade
10 questions
Diseño de videojuegos

Quiz
•
3rd Grade
11 questions
What is Coding?

Quiz
•
3rd - 5th Grade
15 questions
Pictoblox 2

Quiz
•
1st - 7th Grade
10 questions
App Builder - App Deployment

Quiz
•
1st Grade
11 questions
Code.org Unit 3

Quiz
•
3rd Grade
10 questions
JDBC

Quiz
•
1st Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade