wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Repaso Dev

Total questions: 13

Worksheet time: 8mins

Name
Class
Date
1.

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

a)

To avoid Apex code coverage requirements for the code between these lines

b)

To start and stop anonymous block execution when executing anonymous

c)

To indicate test code so that it does not Impact Apex line count governor limits.

d)

To create an additional set of governor limits during the execution of a single test class.

2.

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?

a)

Line-03: A SOQL query is located inside of the for loop code.

b)

Line-01: Trigger:new is not valid in a before insert Trigger.

c)

Line-02: A NullPointer exception is thrown if PostalCode is null.

d)

Line-05: The Lead in a before insert trigger cannot be updated.

3.

What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?

a)

Create a workflow rule with a field update.

b)

Create a Lightning Component.

c)

Create a Visualforce page.

d)

Create a process with Process Builder.

4.

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?

a)

One -to -Many

b)

Lookup

c)

Master -Detail

d)

Parent -Child

5.

What is true for a partial sandbox that is not true for a full sandbox? (Choose 2)

a)

More frequent refreshes.

b)

Only Includes necessary metadata.

c)

Use of change sets.

d)

Does not include all data

6.

When loading data into an organization, what can a developer do to match records to update existing records?Choose 2 answers

a)

Match an external Id Text field to a column in the imported file.

b)

Match the Id field to a column in the Imported file.

c)

Match the Name field to a column in the imported file.

d)

Match an auto -generated Number field to a column in the imported file.

7.

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?

a)

Create a lookup relationship on both objects to a junction object called Job Posting Applications.

b)

Create a master-detail relationship in the Job Postings custom object to the Applications custom object.

c)

Create a master-detail relationship in the Application custom object to the Job Postings custom object.

d)

Create a lookup relationship in the Applications custom object to the Job Postings custom object.

8.

What is a characteristic of the Lightning Component Framework?

Choose 2 answers:

a)

It has an event-driven architecture.

b)

It works with existing Visualforce pages.

c)

It includes responsive components.

d)

It uses XML as its data format.

9.

Which resource can be included in a Lightning Component bundle?

Choose 2 answers

a)

Apex class

b)

Adobe Flash

c)

JavaScript

d)

Documentation

10.

In the Lightning Component framework, which resource can be used to fire events?

Choose 2 answers

a)

Visualforce controller options

b)

Third-party web service code

c)

Third-party Javascript code

d)

Javascript controller actions

11.

What is a capability of cross-object formula fields?

Choose 3 answers

a)

Formula fields can reference fields from master-detail or lookup parent relationships.

b)

Formula fields can expose data the user does not have access to in a record.

c)

Formula fields can be used in three roll-up summaries per object.

d)

Formula fields can reference fields in a collect of records from a child relationship.

e)

Formula fields can reference fields from objects that are up to 10 relationships away.

12.

Which data structure is returned to a developer when performing a SOSL search?

a)

A list of lists of sObjects.

b)

A map of sObject types to a list of sObjects

c)

A map of sObject types to a list of lists of sobjects

d)

A list of sObjects.

13.

How can a developer avoid exceeding governor limits when using Apex Triggers? (Choose 2)

a)

By using Maps to hold data from query results

b)

By using the Database class to handle DML transactions

c)

By performing DML transactions on a list of sObjects.

d)

By using a helper class that can be invoked from multiple triggers