Free DEV-450 Exam Braindumps (page: 34)

Page 34 of 95

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



In the code below, what type does Boolean inherit from?
Boolean b= true;

  1. Enum
  2. Object
  3. String
  4. Class

Answer(s): B



Page 34 of 95



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

Bhuppi commented on December 18, 2024
my exam is on 22nd of DEC.
Anonymous
upvote

Sangeeta commented on December 06, 2024
Want to attempt pd1 exam
UNITED STATES
upvote

xyz commented on August 16, 2024
will post once complete the exam
Anonymous
upvote

abcdef commented on August 10, 2024
Will post once exam done
Anonymous
upvote

UK commented on August 06, 2024
will post once complete the exam
Anonymous
upvote

AP commented on June 14, 2024
will post once complete the exam
ROMANIA
upvote

Lp commented on June 09, 2024
will post once complete the exam
UNITED STATES
upvote

jsb commented on May 17, 2024
will post once complete the exam
Anonymous
upvote

chitti robbo commented on April 22, 2024
will post once complete the exam
Anonymous
upvote

Jamin commented on February 13, 2024
While I did pass my exam using these questions but I noticed a couple of answers were not correct. The questions however are word by word.
INDIA
upvote

hi commented on October 05, 2023
will post exam has finished
UNITED STATES
upvote

NRI commented on August 27, 2023
will post once the exam is finished
UNITED STATES
upvote

Dev commented on January 09, 2024
Will post once I complete the Exam
Anonymous
upvote

hi commented on October 05, 2023
Will post exam has finished
UNITED STATES
upvote

NRI commented on August 27, 2023
Will post once the exam is finished
UNITED STATES
upvote