Free DEV-450 Exam Braindumps (page: 10)

Page 10 of 95

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?

  1. Create a test class that provides coverage of the Visualforce page.
  2. Create a test page that provides coverage of the Visualforce page.
  3. Create a test page that provides coverage of the custom controller.
  4. Create a test class that provides coverage of the custom controller.

Answer(s): D



What are three characteristics of static methods? (Choose three.)

  1. Initialized only when a class is loaded
  2. A static variable outside of the scope of an Apex transaction
  3. Allowed only in outer classes
  4. Allowed only in inner classes
  5. Excluded from the view state for a Visualforce page

Answer(s): A,C,E



Which approach should be used to provide test data for a test class?

  1. Query for existing records in the database.
  2. Execute anonymous code blocks that create data.
  3. Use a test data factory class to create test data.
  4. Access data in @TestVisible class variables.

Answer(s): C



Which approach should a developer take to automatically add a "Maintenance Plan" to each Opportunity that includes an "Annual Subscription" when an opportunity is closed?

  1. Build a OpportunityLineItem trigger that adds a PriceBookEntry record.
  2. Build an OpportunityLineItem trigger to add an OpportunityLineItem record.
  3. Build an Opportunity trigger that adds a PriceBookEntry record.
  4. Build an Opportunity trigger that adds an OpportunityLineItem record.

Answer(s): D



Page 10 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