Salesforce PDI Exam (page: 7)
Salesforce Certified Platform Developer I
Updated on: 28-Jul-2025

Viewing Page 7 of 77

Which two number expressions evaluate correctly? (Choose two.)

  1. Double d = 3.14159;
  2. Integer I = 3.14159;
  3. Decimal d = 3.14159;
  4. Long l = 3.14159;

Answer(s): A,C



Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.
What is the end result?

  1. The API name is not changed and there are no other impacts.
  2. The API name of the field and the reference in the test class is changed.
  3. The API name of the field is changed, and a warning is issued to update the class.
  4. The API name of the field and the reference in the test class is updated.

Answer(s): C



How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?

  1. Create a Sharing Rule comparing the custom object owner to the account owner.
  2. Create a validation rule on the custom object comparing the record owners on both records.
  3. Include the sharing related list on the custom object page layout.
  4. Ensure that the relationship between the objects is Master-Detail.

Answer(s): D



What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

  1. Account0.Phone=333-8781, Account1.Phone=333-8780
  2. Account0.Phone=888-1515, Account1.Phone=999-2525
  3. Account0.Phone=333-8780, Account1.Phone=333-8781
  4. Account0.Phone=888-1515, Account1.Phone=999-1515

Answer(s): C



Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

  1. <apex:stylesheet> tag
  2. Inline CSS
  3. <apex:style>tag
  4. <apex:stylesheets>tag
  5. A static resource

Answer(s): A,B,E



Viewing Page 7 of 77



Share your comments for Salesforce PDI exam with other users:

TestPD1 8/10/2023 12:22:00 PM

question 18 : response isnt a ?
EUROPEAN UNION


TestPD1 8/10/2023 12:19:00 PM

question 17 : responses arent b and c ?
EUROPEAN UNION