PDI Exam Questions

Total 236 Questions

Last Updated Exam : 22-Oct-2024

A developer creates a custom exception as shown below: public class ParityException extends Exception {} What are two ways the developer can fire the exception in Apex? Choose 2 answers


A. new ParityException();:


B. throw new ParityException("parity does not match");


C. new ParityException('parity does not match');


D. throw new ParityException();





B.
  throw new ParityException("parity does not match");

D.
  throw new ParityException();

What are two use cases for executing Anonymous Apex code? Choose 2 answers


A. To delete 15,000 inactive Accounts In a single transaction after a deployment


B. To schedule an Apex class to run periodically


C. To run a batch Apex class to update all Contacts


D. To add unit test code coverage to an org





B.
  To schedule an Apex class to run periodically

C.
  To run a batch Apex class to update all Contacts

Which three data types can a SOQL query return? Choose 3 answers


A. List


B. Long


C. Integer


D. sObJect


E. Double





A.
  List

C.
  Integer

D.
  sObJect

Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order records will be imported into Salesforce. How should the Order Number field be defined in Salesforce?


A. Direct Lookup


B. External ID and Unique


C. Lookup


D. Indirect Lookup





B.
  External ID and Unique

A developer is asked to write helper methods that create test data for unit tests.


What should be changed in the Testvtils class so that its methods are only usable by unit test methods?


A. Change public to private on line 01.


B. Add @IsTest above line 03,


C. Add @IsTest above line 01.


D. Remove static from line 03.





B.
  Add @IsTest above line 03,

A developer considers the following snippet of code:


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


A. 3


B. 1


C. 4


D. 2





C.
  4

A lead developer creates an Apex interface called "Laptop". Consider the following code snippet:

How can a developer use the Laptop Interface within the Silvertaptop class?


A. @Extends(class=Laptop'') public class SilverLaptop


B. public calss SilverLaptop extends Laptop


C. @Interface (class=''Laptop'') public class SilverLaptop


D. public class Silverlaptop implements Laptop





B.
  public calss SilverLaptop extends Laptop

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers


A. Renclerer


B. Style


C. Helper


D. Controller


E. Design





A.
  Renclerer

C.
  Helper

D.
  Controller

Which code displays the contents of a Visualforce page as a PDF?


A. Option A


B. Option B


C. Option C


D. Option D





C.
  Option C

A software company uses the following objects and relationships:
• Case: to handle customer support issues
• Defect_c: a custom object to represent known issues with the company's software
• case_Defect c: a junction object between Case and Defector to represent that a defect Is a customer issue
What should be done to share a specific Case-Defect_c record with a user?


A. Share the Case_Defect_c record.


B. Share the parent Case record.


C. Share the parent Defect_c record.


D. Share the parent Case and Defect_c records.





D.
  Share the parent Case and Defect_c records.


Page 8 out of 24 Pages
Previous