Free CRT-450 Exam Braindumps (page: 11)

Page 11 of 96

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






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

CRT-450 Exam Discussions & Posts