Salesforce PDI Exam Questions
Certified Platform Developer (Page 8 )

Updated On: 16-Mar-2026

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 8 of 77
Viewing questions 36 - 40 out of 119 questions



Post your Comments and Discuss Salesforce PDI exam dumps with other Community members:

PDI Exam Discussions & Posts

AI Tutor 👋 I’m here to help!