Salesforce CRT-450 - Salesforce Certified Platform Developer I Exam

Page:    1 / 86   
Total 430 questions

Which statement results in an Apex compiler error?

  • A. Map<Id,Leas> lmap = new Map<Id,Lead>([Select ID from Lead Limit 8]);
  • B. Date d1 = Date.Today(), d2 = Date.ValueOf(ג€˜2018-01-01ג€™);
  • C. Integer a=5, b=6, c, d = 7;
  • D. List<string> s = List<string>{ג€˜aג€™,ג€˜bג€™,ג€˜cג€™);


Answer : D

What are two benefits of the Lightning Component framework? (Choose two.)

  • A. It simplifies complexity when building pages, but not applications.
  • B. It provides an event-driven architecture for better decoupling between components.
  • C. It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.
  • D. It allows faster PDF generation with Lightning components.


Answer : BC

A method is passed a list of generic sObjects as a parameter.
What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?

  • A. Use the first three characters of the sObject ID to determine the sObject type.
  • B. Use the getSObjectType method on each generic sObject to retrieve the sObject token.
  • C. Use the getSObjectName method on the sObject class to get the sObject name.
  • D. Use a try-catch construct to cast the sObject into one of the three sObject types.


Answer : B

What should a developer use to implement an automatic Approval Process submission for Cases?

  • A. An Assignment Rule
  • B. Scheduled Apex
  • C. Process Builder
  • D. A Workflow Rule


Answer : C

When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items.
What should a developer do to meet this requirement?

  • A. Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items.
  • B. Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted.
  • C. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.
  • D. Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items.


Answer : C

Page:    1 / 86   
Total 430 questions