CRT-450 Practice Test

CRT-450 Practice Test practice questions, page 11 of 18, with answer review and explanations.

Question 51

A developer is asked to set a picklist field to `˜Monitor' on any new Leads owned by a subnet of Users. How should the developer implement this request?

  1. Create an after insert Lead trigger.
  2. Create a before insert Lead trigger.
  3. Create a Lead Workflow Rule Field Update.
  4. Create a Lead formula field.

Question 52

Why would a developer consider using a custom controller over a controller extension?

  1. To increase the SOQL query governor limits.
  2. To implement all of the logic for a page and bypass default Salesforce functionality
  3. To leverage built-in functionality of a standard controller
  4. To enforce user sharing settings and permissions

Question 53

A developer wants to override a button using Visualforce on an object. What is the requirement?

  1. The controller or extension must have a PageReference method.
  2. The standardController attribute must be set to the object.
  3. The action attribute must be set to a controller method.
  4. The object record must be instantiated in a controller or extension.

Question 54

A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed: Which type of exception will this trigger cause?

  1. A null reference exception
  2. A compile time exception
  3. A DML exception
  4. A limit exception when doing a bulk update

Question 55

How should a developer create a new custom exception class?

  1. public class CustomException extends Exception{}
  2. CustomException ex = new (CustomException)Exception();
  3. public class CustomException implements Exception{}
  4. (Exception)CustomException ex = new Exception();