Free DEX-450 Exam Braindumps (page: 15)

Page 14 of 115

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.

Answer(s): B



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

Answer(s): C



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();

Answer(s): A



Which two number expressions evaluate correctly? (Choose two.)

  1. Double d = 3.14159;
  2. Integer I = 3.14159;
  3. Decimal d = 3.14159;
  4. Long l = 3.14159;

Answer(s): A,C






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