Dev 1 full dump

Dev 1 full dump

1st Grade

14 Qs

quiz-placeholder

Similar activities

Business Quiz w/c 22nd Feb

Business Quiz w/c 22nd Feb

1st Grade

15 Qs

Pasulit ( Yunit 1- unang linggo)

Pasulit ( Yunit 1- unang linggo)

1st - 10th Grade

10 Qs

HRM - Q1

HRM - Q1

1st - 10th Grade

10 Qs

Small Business Enterprise

Small Business Enterprise

KG - University

10 Qs

CoreLOG refresh

CoreLOG refresh

1st - 3rd Grade

10 Qs

Dev 1 / 16-3

Dev 1 / 16-3

1st Grade

12 Qs

ABIDISLASACCT2301.06Pre

ABIDISLASACCT2301.06Pre

1st - 12th Grade

10 Qs

EVALUACIÓN VERONICA

EVALUACIÓN VERONICA

1st Grade

15 Qs

Dev 1 full dump

Dev 1 full dump

Assessment

Quiz

Created by

Megan Santos

Business

1st Grade

1 plays

Medium

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

Media Image

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

Media Image

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

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?