Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Newly Released Salesforce PDI Exam PDF

Page: 11 / 18
Total 235 questions

Platform Developer I (SP23) Questions and Answers

Question 41

Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV’s package namespace.

Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?

Options:

A.

Declare the class and method using the public access modifier.

B.

Declare the class as global and use the public access modifier on the method.

C.

Declare the class as public and use the global access modifier on the method.

D.

Declare the class and method using the global access modifier.

Question 42

What is the result of the following code snippet?

Options:

A.

Accounts are inserted.

B.

Account Is inserted.

C.

200 Accounts are inserted.

D.

201 Accounts are Inserted.

Question 43

What should be used to create scratch orgs?

Options:

A.

Developer Console

B.

Salesforce CLI

C.

Workbench

D.

Sandbox refresh

Question 44

A developer considers the following snippet of code:

Based on this code, what is the value of x?

Options:

A.

3

B.

1

C.

4

D.

2

Page: 11 / 18
Total 235 questions