Free CRT-450 Exam Braindumps
Certified Platform Developer Questions 131–135 (page: 28)

Updated On: 10-Feb-2026

A developer needs to confirm that an Account trigger is working correctly without changing the organization's data.What would the developer do to test the Account trigger?

  1. Use the Test menu on the developer Console to run all test classes for the account trigger.
  2. Use the New button on the Salesforce Accounts Tab to create a new Account record.
  3. Use the Open Execute Anonymous feature on the Developer Console to run an `insert Account' DML statement.
  4. Use Deply from the Force.com IDE to deploy an `insert Account' Apex class.

Answer(s): A



A developer declared a class as follow.
public class wysiwyg { // Properties and methods including DML }
Which invocation of a class method will obey the organization-wide defaults and sharing settings for the running user in the Salesforce Organization?

  1. An Apex Trigger that invokes a helper method in this class
  2. A Visualforce page with an Apex controller that invokes a method in this class
  3. A user on an external system that has an API call into Salesforce that invokes a method in this class
  4. A developer using the Developer Console that invokes a method in this class from the execute anonymous window

Answer(s): D



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?

  1. Rates.smokercharge
  2. Contacttrigger.insurancerates.smokercharge
  3. Insurancerates.smokercharge
  4. Rates.getsmokercharge()

Answer(s): C



A developer needs to include a visualforce page in the detail section of a page layout for the account object, but does not see the page as an available option in the page layout editorwhich attribute must the developer include in the <apex:page> tag to ensure the visualforce page can be embedded in a page layout

  1. Controller="account"
  2. Extensions="accountcontroller"
  3. Standardcontroller="account"
  4. Action="accountid"

Answer(s): C



The account object has a custom percent field, rating, defined with a length of 2 with 0 decimal places. An account record has the value of 50% in its rating field and is processed in the apex code below after being retrieved from the database with SOQL public void processaccount(){ decimal acctscore = acc.rating__c * 100; } what is the value of acctscore after this code executes?

  1. 5
  2. 50
  3. 500
  4. 5000

Answer(s): C



Viewing page 28 of 77
Viewing questions 136 - 140 out of 439 questions


Post your Comments and Discuss Salesforce CRT-450 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!