CRT-450 Dumps

CRT-450 Free Practice Test

Salesforce CRT-450: Salesforce Certified Platform Developer I (SU18)

QUESTION 16

What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?Choose 2 answers

Correct Answer: BC

QUESTION 17

A developer needs to write a method that searches for a phone number that could be on multiple object types. Which method should the developer use to accomplish this task?

Correct Answer: C

QUESTION 18

Which approach should a developer use to add pagination to a Visualforce page?

Correct Answer: D

QUESTION 19

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?

Correct Answer: A

QUESTION 20

A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for
the user who executes the code in the Salesforce organization?

Correct Answer: D