Leads4pass > Salesforce > Salesforce Developer > CRT-450 > CRT-450 Online Practice Questions and Answers

CRT-450 Online Practice Questions and Answers

Questions 4

A developer needs to update an unrelated object when a record gets saved. Which two trigger types should the developer create?

A. After insert

B. After update

C. Before update

D. Before insert

Buy Now
Questions 5

Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers

A. $Lightning.createComponent

B.

C. $Lightning.useComponent

D. $Lightning.use

E.

Buy Now
Questions 6

A developer created this Apex trigger that calls MyClass.myStaticMethod:

trigger myTrigger on Contact(before insert)

{ MyClass.myStaticMethod(trigger.new, trigger.oldMap); }

The developer creates a test class with a test method that calls MyClass.myStaticMethod, resulting in 81% overall code coverage.

What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?

A. The deployment fails because the Apex trigger has no code coverage.

B. The deployment fails because no assertions were made in the test method.

C. The deployment passes because the Apex code has required (>75%) code coverage.

D. The deployment passes because both classes and the trigger were included in the deployment.

Buy Now
Questions 7

Which two SOSL searches will returns records matching search criteria contained in any of the searchable texts fields on an object? Choose 2 answers

A. [FIND 'Acme*' RETURNING Account,Opportunity];

B. [FIND 'Acme*' IN ANY FIELDS RETURNING Account,Opportunity];

C. [FIND 'Acme*' IN TEXT FIELDS RETURNING Account,Opportunity];

D. [FIND 'Acme*' IN ALL FIELDS RETURNING Account,Opportunity];

Buy Now
Questions 8

Which two statement are acceptable for a developer to use Inside procedural loops?

A. Contactlist.remove(i)

B. Delete contactList

C. Account a=[select id,name from account where id=:con.accountid limit 1]

D. Contact con =new contact()

Buy Now
Questions 9

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

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

B. By using Maps to hold data from query results

C. By using the Database class to handle DML transactions

D. By performing DML transactions on a list of sObjects.

Buy Now
Questions 10

A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines. What data model should be used to track the data and to prevent orphan records?

A. Create a junction object to relate many engines to many parts through a master-detail relationship

B. Create a lookup relationship to represent how each part relates to the parent engine object.

C. Create a master-detail relationship to represent the one-to-many model of engines to parts.

D. Create a junction object to relate many engines to many parts through a lookup relationship

Buy Now
Questions 11

What is the accurate statement about with sharing keyword? choose 2 answers

A. Inner class do not inherit the sharing setting from the container class

B. Both inner and outer class can be declared as with sharing

C. Either inner class or outer classes can be declared as with sharing but not both

D. Inner class inherit the sharing setting from the container class

Buy Now
Questions 12

Which three tools can deploy metadata to production? (Choose three.)

A. Change Set from Developer Org

B. Force.com IDE

C. Data Loader

D. Change Set from Sandbox

E. Metadata API

Buy Now
Questions 13

In the following example, which sharing context myMethod execute when it is invoked?

public Class myClass {

public void myMethod() { /* implementation */ }

}

A. Sharing rules will not be enforced for the running user.

B. Sharing rules will be inherited from the calling context.

C. Sharing rules will be enforced for the running user.

D. Sharing rules will be enforced by the instantiating class.

Buy Now
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I
Last Update: Nov 15, 2024
Questions: 629
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99