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

Viewing Page 1 of 77

What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)

  1. for (Account theAccount : AccountList) {...}
  2. for(AccountList) {...}
  3. for (List L : AccountList) {...}
  4. for (Integer i=0; i < AccountList.Size(); i++) {...}

Answer(s): A,D



Which statement results in an Apex compiler error?

  1. Map<Id,Leas> lmap = new Map<Id,Lead>([Select ID from Lead Limit 8]);
  2. Date d1 = Date.Today(), d2 = Date.ValueOf(`2018-01-01');
  3. Integer a=5, b=6, c, d = 7;
  4. List<string> s = List<string>{`a',`b',`c');

Answer(s): D



A developer wants to override a button using Visualforce on an object.
What is the requirement?

  1. The controller or extension must have a PageReference method.
  2. The standardController attribute must be set to the object.
  3. The action attribute must be set to a controller method.
  4. The object record must be instantiated in a controller or extension.

Answer(s): B



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

  1. A StandardController
  2. The Action attribute for a page
  3. The extensions attribute for a page
  4. A StandardSetController

Answer(s): D



Which SOQL query successfully returns the Accounts grouped by name?

  1. SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name
  2. SELECT Name, Max(CreatedDate) FROM Account GROUP BY Name
  3. SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name
  4. SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5

Answer(s): B



Viewing Page 1 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