Exam Details

  • Exam Code
    :PDI
  • Exam Name
    :Salesforce Certification for Platform Developer I
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :719 Q&As
  • Last Updated
    :Apr 10, 2025

Salesforce Salesforce Certifications PDI Questions & Answers

  • Question 471:

    Opportunity opp=[select id ,stagename from opportunity limit 1] Given the code above, how can a developer get the label for the stagename field?

    A. Call"opp.stagename.getdescribe().getlabel()"

    B. Call "opportunity.stagename.label"

    C. Call"opportunity.stagename.getdescribe().getlabel()"

    D. Call"opp.stagename.label"

  • Question 472:

    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()

  • Question 473:

    A developer wants multiple test classes to use the same set of test dat

    A. How should the developer create the test data?

    B. Define a variable for test records in each test classes

    C. Create a test setup method for each test class

    D. Use the seealldata=true annotation in each test class

    E. Reference a test utility class in each test class

  • Question 474:

    A developer uses a Test Setup method to create an Account named 'Test'. The first test method deletes the Account record. What must be done in the second test method to use the Account?

    A. Use SELECT Id from Account where Name='Test'

    B. Restore the Account using an undeleted statement

    C. The Account cannot be used in the second test method

    D. Call the Test Setup method at the start of the test

  • Question 475:

    How can a developer use a Set to limit the number of records returned by a SOQL query?

    A. Reference the Set in the LIMIT clause of the query

    B. Pass the query results as an argument in a reference to the Set.containsAll() method.

    C. Pass the Set as an argument in a reference to the Database.query() method

    D. Reference the Set in the WHERE clause of the query

  • Question 476:

    A company has a custom object named Region. Each account in salesforce can only be related to one region at a time, but this relationship is optional. Which type of relantionship should a developer use to relate an account to a region?

    A. Parent-child

    B. Master-detail

    C. Hierarchical

    D. Lookup

  • Question 477:

    A visualforce page uses the contact standard controller. How can a developer display the name from the parent account record on the page?

    A. Use SOQL syntax to find the related accounts name field

    B. Use the {!contact.account.name} merge field syntax

    C. Use an additional standard controller for accounts

    D. Use additional apex logic within the controller to query for the name field

  • Question 478:

    A developer has the following class and trigger code public class insurancerates{ public static final decimal smokercharge = 0.01; } trigger contacttrigger on contact (before insert){ insurancerates rates = new insurancerates(); decimal basecost=xxx; } Which code segment should a developer insert at the xxx to set the basecost variable to the value of the class variable smokercharge?

    A. Rates.smokercharge

    B. Contacttrigger.insurancerates.smokercharge

    C. Insurancerates.smokercharge

    D. Rates.getsmokercharge()

  • Question 479:

    Which two queries can a developer use in a Visualforce controller to protect against SOQL injection vulnerabilities? Choose 2 answers

    A. String qryName = % + String.enforceSecurityChecks(name)+ % ; String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ; List queryResults = Database.query(qryString);

    B. String qryName = % + name % ; String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ; List queryResults = Database.query(qryString);

    C. String qryName = % + String.escapeSingleQuotes(name)+ % ; String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ; List queryResults = Database.query(qryString);

    D. String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ; List queryResults = Database.query(qryString);

  • Question 480:

    Which type of code represents the Model in the MVC architecture on the Force.com platform?

    A. A Controller Extension method that uses SOQL to query for a list of Account records

    B. Custom JavaScript that processes a list of Account records.

    C. A list of Account records returned from a Controller Extension method

    D. A Controller Extension method that saves a list of Account records

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.